diff options
Diffstat (limited to 'puzzles/mod_relative_import')
-rw-r--r-- | puzzles/mod_relative_import/__init__.py | 3 | ||||
-rw-r--r-- | puzzles/mod_relative_import/foo.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/puzzles/mod_relative_import/__init__.py b/puzzles/mod_relative_import/__init__.py new file mode 100644 index 0000000..ff97bdb --- /dev/null +++ b/puzzles/mod_relative_import/__init__.py @@ -0,0 +1,3 @@ +from .foo import x + +print(foo.x + x) diff --git a/puzzles/mod_relative_import/foo.py b/puzzles/mod_relative_import/foo.py new file mode 100644 index 0000000..b95c23a --- /dev/null +++ b/puzzles/mod_relative_import/foo.py @@ -0,0 +1 @@ +x = 3 |