99a0c45aef
When foo.bar is imported, bar is added as an attribute to foo. Previously this happened on every import, but should only happen on first import. This verifies the behavior for relative imports and overriding. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
6 lines
55 B
Python
6 lines
55 B
Python
from .mod1 import mod1
|
|
|
|
|
|
def mod2():
|
|
print("mod2")
|