diff options
author | Martin Fischer <martin@push-f.com> | 2022-03-02 07:13:19 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-03-02 07:13:19 +0100 |
commit | 060bf54f3cce2b72f7bc0a951a0dc6ab02b18f14 (patch) | |
tree | d341d06cd13d30308333d4c9c2f67678a742bfbe /puzzles | |
parent | 80c24905262130fa95ff37a424998f40f094c739 (diff) |
Diffstat (limited to 'puzzles')
-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 |