From 2180c68999eb8dc0c7bcec015b2703f5b8b20223 Mon Sep 17 00:00:00 2001 From: zhang Date: Wed, 4 May 2022 08:47:54 +0800 Subject: ndarray axis --- test/pkg/__init__.py | 4 ++++ test/pkg/a_module.py | 4 ++++ test/scripts/a_script.py | 7 +++++++ test/test.py | 10 ++++++++++ 4 files changed, 25 insertions(+) create mode 100644 test/pkg/__init__.py create mode 100644 test/pkg/a_module.py create mode 100644 test/scripts/a_script.py create mode 100644 test/test.py (limited to 'test') 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() -- cgit v1.2.3