Good call! The following snippet solved my problems portably. path = sys.path[1:] file, filename, description = imp.find_module('logging', path) logging = imp.load_module('logging', file, filename, description) Thanks! --Peter