summaryrefslogtreecommitdiff
path: root/puzzles/mod_relative_import
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-03-02 07:13:19 +0100
committerMartin Fischer <martin@push-f.com>2022-03-02 07:13:19 +0100
commit060bf54f3cce2b72f7bc0a951a0dc6ab02b18f14 (patch)
treed341d06cd13d30308333d4c9c2f67678a742bfbe /puzzles/mod_relative_import
parent80c24905262130fa95ff37a424998f40f094c739 (diff)
add puzzles/mod_relative_import/HEADmaster
Diffstat (limited to 'puzzles/mod_relative_import')
-rw-r--r--puzzles/mod_relative_import/__init__.py3
-rw-r--r--puzzles/mod_relative_import/foo.py1
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