imports without path did have problems, because of an incorrect sys.path
This commit is contained in:
1 parent
17d7870b3b
commit
68d595fe70
3 files changed
+18
-1
No files matched your search
+3
-1
@@ -335,7 +335,9 @@ def sys_path_with_modifications(module):
|
||||
return sys_path
|
||||
|
||||
if module.path is None:
|
||||
return [] # support for modules without a path is intentionally bad.
|
||||
# Support for modules without a path is bad, therefore return the
|
||||
# normal path.
|
||||
return list(get_sys_path())
|
||||
|
||||
curdir = os.path.abspath(os.curdir)
|
||||
with common.ignored(OSError):
|
||||
|
||||
Reference in new issue
Block a user