1
0
forked from VimPlug/jedi

Trying to change the import logic completely. We now have a sys.modules like cache.

This commit is contained in:
Dave Halter
2015-04-20 14:47:33 +02:00
parent 8fca3f78a1
commit df9452f210
7 changed files with 132 additions and 63 deletions
+1 -1
View File
@@ -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: