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