memoize sys_path modifications

This commit is contained in:
Dave Halter
2014-06-25 15:04:48 +02:00
parent 6e82fa31e1
commit 718df569ea
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ class _Importer(object):
new = os.path.sep.join(parts[:i])
in_path.append(new)
return in_path + sys_path.sys_path_with_modifications(self.module)
return in_path + sys_path.sys_path_with_modifications(self._evaluator, self.module)
def follow(self, evaluator):
scope, rest = self.follow_file_system()