fixed a sys.path issue disscussed in github issue #7

This commit is contained in:
David Halter
2012-09-03 14:07:35 +02:00
parent c3bdd00a8c
commit c725b6624b
2 changed files with 6 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ class Parser(CachedModule):
content = {}
exec_function('import %s as module' % name, content)
self._module = content['module']
self.sys_path, sys.path = sys.path, temp
sys.path = temp
if path:
self.sys_path.pop(0)