micropython: add micropython component
This commit is contained in:
@@ -0,0 +1 @@
|
||||
print("pkg __name__:", __name__)
|
@@ -0,0 +1,2 @@
|
||||
print("mod1")
|
||||
foo = "mod1.foo"
|
@@ -0,0 +1,2 @@
|
||||
print("mod2")
|
||||
bar = "mod2.bar"
|
@@ -0,0 +1 @@
|
||||
print("pkg __name__:", __name__)
|
@@ -0,0 +1 @@
|
||||
print("pkg __name__:", __name__)
|
@@ -0,0 +1,11 @@
|
||||
from ... import mod1
|
||||
from ...mod2 import bar
|
||||
|
||||
print(mod1.foo)
|
||||
print(bar)
|
||||
|
||||
# attempted relative import beyond top-level package
|
||||
try:
|
||||
from .... import mod1
|
||||
except ImportError:
|
||||
print("ImportError")
|
Reference in New Issue
Block a user