mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-21 02:47:05 +08:00
There was a bug in creating modules in a subprocess
This commit is contained in:
1 parent
8003d30b06
commit
0acb7dcb18
1 file changed
+4
-4
@@ -29,7 +29,7 @@ def get_special_object(evaluator, identifier):
|
|||||||
|
|
||||||
|
|
||||||
def load_module(evaluator, path=None, name=None):
|
def load_module(evaluator, path=None, name=None):
|
||||||
return create_from_access_path(
|
access_path = evaluator.compiled_subprocess.load_module(path=path, name=name)
|
||||||
evaluator,
|
if access_path is None:
|
||||||
evaluator.compiled_subprocess.load_module(path=path, name=name)
|
return None
|
||||||
)
|
return create_from_access_path(evaluator, access_path)
|
||||||
Reference in new issue
Block a user