summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pkg/__init__.py4
-rw-r--r--test/pkg/a_module.py4
-rw-r--r--test/scripts/a_script.py7
-rw-r--r--test/test.py10
4 files changed, 25 insertions, 0 deletions
diff --git a/test/pkg/__init__.py b/test/pkg/__init__.py
new file mode 100644
index 0000000..2a59b29
--- /dev/null
+++ b/test/pkg/__init__.py
@@ -0,0 +1,4 @@
+
+print("{} file is called!".format(__file__))
+
+from pkg.a_module import func_from_a \ No newline at end of file
diff --git a/test/pkg/a_module.py b/test/pkg/a_module.py
new file mode 100644
index 0000000..0cebfeb
--- /dev/null
+++ b/test/pkg/a_module.py
@@ -0,0 +1,4 @@
+
+def func_from_a():
+ print('func from a')
+
diff --git a/test/scripts/a_script.py b/test/scripts/a_script.py
new file mode 100644
index 0000000..2e285d3
--- /dev/null
+++ b/test/scripts/a_script.py
@@ -0,0 +1,7 @@
+
+import sys
+# sys.path.append('../pkg')
+
+from a_module import func_from_a
+
+func_from_a() \ No newline at end of file
diff --git a/test/test.py b/test/test.py
new file mode 100644
index 0000000..c7d4f02
--- /dev/null
+++ b/test/test.py
@@ -0,0 +1,10 @@
+
+import sys
+# from pkg.a_module import func_from_a
+# from pkg import func_from_a
+
+for p in sys.path:
+ print(p)
+
+a = 100
+# func_from_a()