S
Steven Woody
Hi,
Adapted your kindly suggestions in a previous post, I now decide to
organize my source tree in a pattern like below:
prj:
src:
lib:
foomodule.py
barmodule.py
scripts:
prj_main.py
test:
footest.py
bartest.py
...
That is, I want to put the top-level scripts in prj/src/scripts and
share libraries in prj/src/lib. In the prj/test directory I want to
put my unit-tests using unittest module. My question is that when in
development stage there is no file is actually distributed, so how
should a python source in one directory refer to (import) another
module in another directory?
Thanks in advance.
-
narke
Adapted your kindly suggestions in a previous post, I now decide to
organize my source tree in a pattern like below:
prj:
src:
lib:
foomodule.py
barmodule.py
scripts:
prj_main.py
test:
footest.py
bartest.py
...
That is, I want to put the top-level scripts in prj/src/scripts and
share libraries in prj/src/lib. In the prj/test directory I want to
put my unit-tests using unittest module. My question is that when in
development stage there is no file is actually distributed, so how
should a python source in one directory refer to (import) another
module in another directory?
Thanks in advance.
-
narke