sys.path.append() -Alex Goretoy http://www.alexgoretoy.com somebodywhoca...@gmail.com
On Mon, Jan 12, 2009 at 2:00 AM, Steven Woody <narkewo...@gmail.com> wrote: > 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 > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list