fixed bugs for os.path.join().

This commit is contained in:
David Halter
2012-10-01 00:25:14 +02:00
parent 1009a0b376
commit 61f465a7d6
2 changed files with 10 additions and 4 deletions

View File

@@ -197,7 +197,11 @@ def sys_path_with_modifications(module):
debug.warning('sys path detected, but failed to evaluate')
return None
try:
return os.path.abspath(variables['result'])
res = variables['result']
if isinstance(res, str):
return os.path.abspath(res)
else:
return None
except KeyError:
return None