blob: b708881e4f8d3deb4b772db3eebfba06c586da55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git a/jedi/inference/compiled/subprocess/functions.py b/jedi/inference/compiled/subprocess/functions.py
index 5070c6643..bbc14c392 100644
--- a/jedi/inference/compiled/subprocess/functions.py
+++ b/jedi/inference/compiled/subprocess/functions.py
@@ -151,7 +151,11 @@ def _find_module(string, path=None, full_name=None, is_global_search=True):
spec = find_spec(string, p)
if spec is not None:
+ if spec.origin == "frozen":
+ continue
+
loader = spec.loader
+
if loader is None and not spec.has_location:
# This is a namespace package.
full_name = string if not path else full_name
|