diff options
| author | zhang <zch921005@126.com> | 2022-05-04 08:47:54 +0800 |
|---|---|---|
| committer | zhang <zch921005@126.com> | 2022-05-04 08:47:54 +0800 |
| commit | 2180c68999eb8dc0c7bcec015b2703f5b8b20223 (patch) | |
| tree | 3ec71623038ff8b90a5bc4e32da14a7382d42d9d /test | |
| parent | 70aebb73b81b50911e2107cd4519e69f09971021 (diff) | |
ndarray axis
Diffstat (limited to 'test')
| -rw-r--r-- | test/pkg/__init__.py | 4 | ||||
| -rw-r--r-- | test/pkg/a_module.py | 4 | ||||
| -rw-r--r-- | test/scripts/a_script.py | 7 | ||||
| -rw-r--r-- | test/test.py | 10 |
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() |
