remove module_find_path, fixes #36

This commit is contained in:
David Halter committed 2012-11-18 01:17:12 +01:00
1 parent 5430d156ba
commit 95eab8e0d4
3 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -234,9 +234,9 @@ def sys_path_with_modifications(module):
try:
possible_stmts = module.used_names['path']
except KeyError:
return builtin.module_find_path
return builtin.get_sys_path()
sys_path = list(builtin.module_find_path) # copy
sys_path = list(builtin.get_sys_path()) # copy
for p in possible_stmts:
try:
call = p.get_assignment_calls().get_only_subelement()