fixed bugs for os.path.join().
This commit is contained in:
1 parent
1009a0b376
commit
61f465a7d6
2 files changed
+10
-4
No files matched your search
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user