From 8fdb90b961ebfb919c4f215e3b5fc49191b587e6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 5 Feb 2015 16:51:17 -0800 Subject: [PATCH] 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). --- sphinxtools/modulehunter.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sphinxtools/modulehunter.py b/sphinxtools/modulehunter.py index b0d4f403..643dae20 100644 --- a/sphinxtools/modulehunter.py +++ b/sphinxtools/modulehunter.py @@ -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: