File layout in development stage

alex goretoy aleksandr.goretoy at gmail.com
Mon Jan 12 03:07:23 CET 2009


sys.path.append()

-Alex Goretoy
http://www.alexgoretoy.com
somebodywhocarez at gmail.com


On Mon, Jan 12, 2009 at 2:00 AM, Steven Woody <narkewoody at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090112/6850c7e0/attachment.html>


More information about the Python-list mailing list