mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-26 15:21:09 +08:00
fixed bugs for os.path.join().
This commit is contained in:
@@ -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