Adding the wx folder to the sys.path is a bad idea, as then it will have potential problems with name clashes with modules in the stdlib or site-packages (like xml).

This commit is contained in:
Robin Dunn
2015-02-05 16:51:17 -08:00
parent d8004872a9
commit 8fdb90b961

View File

@@ -607,8 +607,6 @@ def ModuleHunter(init_name, import_name, version):
directory, module_name = os.path.split(init_name)
path = list(sys.path)
sys.path.insert(0, os.path.dirname(directory))
mainmod = Import(init_name, import_name)
if mainmod is None: