2016-12-20 19:25:53 -05:00
|
|
|
from ... import mod1
|
|
|
|
from ...mod2 import bar
|
2021-03-15 09:57:36 -04:00
|
|
|
|
2016-12-20 19:25:53 -05:00
|
|
|
print(mod1.foo)
|
|
|
|
print(bar)
|
2017-01-15 23:45:55 -05:00
|
|
|
|
2017-06-26 22:38:39 -04:00
|
|
|
# attempted relative import beyond top-level package
|
2017-01-15 23:45:55 -05:00
|
|
|
try:
|
|
|
|
from .... import mod1
|
2017-01-16 00:21:04 -05:00
|
|
|
except ValueError:
|
2021-03-15 09:57:36 -04:00
|
|
|
print("ValueError")
|