On 12/01/08 12:02 +0100, Jorgen Bodde wrote: > Hi All, > > I am trying to make a debian package. I am following the tutorial by > Horst Jens > (http://showmedo.com/videos/video?name=linuxJensMakingDeb&fromSeriesID=37) > and it is very informative. However one thing my app has and his > doesn't, is multiple python files which need to be executed. For > example > > {dir}/app > app.py > > app.py calls a lot of modules in {dir}/app. Horst says the python file > goes in /usr/bin/app.py which is ok with me, but I have multiple > python files, and I decided to use an app.sh script to call my python > files. In the /usr/bin I do not see subdirs so I assume that is not > really desirable. > > Question 1. Where do I put the bulk of python scripts in a normal > linux environment?
I would think you'd create a directory /usr/bin/app and then symlink /usr/bin/app.py to /usr/bin/app/app.py. > 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 That would make sense. > Thanks for any advice or maybe a good tutorial how to set up files in > a linux environment http://www.pathname.com/fhs/ (couldn't find a more recent version, sorry.) -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- http://mail.python.org/mailman/listinfo/python-list