Trying to change the import logic completely. We now have a sys.modules like cache.
This commit is contained in:
1 parent
8fca3f78a1
commit
df9452f210
7 files changed
+132
-63
No files matched your search
@@ -334,7 +334,7 @@ def dotted_from_fs_path(fs_path, sys_path=None):
|
||||
return _path_re.sub('', fs_path[len(path):].lstrip(os.path.sep)).replace(os.path.sep, '.')
|
||||
|
||||
|
||||
def load_module(path, name):
|
||||
def load_module(path=None, name=None):
|
||||
if path is not None:
|
||||
dotted_path = dotted_from_fs_path(path)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user