mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Fixed unresolved references for namespace packages (PY-2813)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
import p1
|
||||
#<ref>
|
||||
@@ -0,0 +1 @@
|
||||
import sys,types,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('p1',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('p1',types.ModuleType('p1')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)
|
||||
@@ -0,0 +1,2 @@
|
||||
def foo():
|
||||
pass
|
||||
Reference in New Issue
Block a user