where do my python files go in linux?

A.T.Hofkamp hat at se-162.se.wtb.tue.nl
Mon Jan 14 02:47:55 EST 2008


On 2008-01-12, Jorgen Bodde <jorgen.maillist at gmail.com> wrote:
> Question 1. Where do I put the bulk of python scripts in a normal
> linux environment?
> Question 2. Should I use *.pyc rather then *.py files to speed up
> executing as the user cannot write to /usr/bin or any other dir in the
> system and everytime my app runs it will recompile it
>
> Thanks for any advice or maybe a good tutorial how to set up files in
> a linux environment

Rather than re-inventing the wheel, please have a look at distutils:
http://docs.python.org/lib/module-distutils.html

It does most if not all of the things you want to do.
If you want something more advanced, read about eggs.


Sincerely,
Albert



More information about the Python-list mailing list