[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: where do my python files go in linux?

Faber J. Fedor

1/12/2008 3:30:00 PM

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&fromS...)
> 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.pathnam... (couldn't find a more
recent version, sorry.)


--

Regards,

Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.l...




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

1 Answer

kbliznick

2/7/2011 5:15:00 PM

0

I think Alien Poker used them as well.