[Tutor] Selection of Plaform specific modules

Charlie Clark Charlie@begeistert.org
Fri, 07 Sep 2001 14:08:05 +0200


For some database work I've written the following little function in a 
tools module

def check_platform():
	if sys.version.find("MSC") >= 0:
		base_path = "viven/"
		from mx.ODBC.Windows import DriverConnect
	else:
		base_path = ""
	return base_path

It works fine when I call but it doesn't make the imported module 
available. What do I need to change this?

Charlie