2016-12-21 00:25:53 +00:00
|
|
|
from ... import mod1
|
|
|
|
from ...mod2 import bar
|
|
|
|
print(mod1.foo)
|
|
|
|
print(bar)
|
2017-01-16 04:45:55 +00:00
|
|
|
|
2017-06-27 03:38:39 +01:00
|
|
|
# attempted relative import beyond top-level package
|
2017-01-16 04:45:55 +00:00
|
|
|
try:
|
|
|
|
from .... import mod1
|
2017-01-16 05:21:04 +00:00
|
|
|
except ValueError:
|
|
|
|
print('ValueError')
|