mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
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:
@@ -607,8 +607,6 @@ def ModuleHunter(init_name, import_name, version):
|
|||||||
directory, module_name = os.path.split(init_name)
|
directory, module_name = os.path.split(init_name)
|
||||||
path = list(sys.path)
|
path = list(sys.path)
|
||||||
|
|
||||||
sys.path.insert(0, os.path.dirname(directory))
|
|
||||||
|
|
||||||
mainmod = Import(init_name, import_name)
|
mainmod = Import(init_name, import_name)
|
||||||
|
|
||||||
if mainmod is None:
|
if mainmod is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user