fixed sys_path test

This commit is contained in:
David Halter
2012-11-18 02:34:32 +01:00
parent afad39539a
commit ed7c004881
2 changed files with 3 additions and 1 deletions

View File

@@ -261,12 +261,14 @@ def sys_path_with_modifications(module):
res = execute_code(exe.get_code())
if res is not None:
sys_path.insert(0, res)
debug.dbg('sys path inserted: %s' % res)
exe.type = exe_type
exe.values.insert(0, exe_pop)
elif array_cmd == 'append':
res = execute_code(exe.get_code())
if res is not None:
sys_path.append(res)
debug.dbg('sys path added: %s' % res)
return sys_path
curdir = os.path.abspath(os.curdir)