where do my python files go in linux?
Nick Craig-Wood
nick at craig-wood.com
Mon Jan 14 06:30:04 EST 2008
Jeroen Ruigrok van der Werven <asmodai at in-nomine.org> wrote:
> -On [20080112 12:03], Jorgen Bodde (jorgen.maillist at gmail.com) wrote:
> >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.
>
> Personally I'd be loathe to put app.py in /usr/bin. This directory is normally
> reserved for OS-specific binaries. For personal/system-extended stuff I'd use
> /usr/local/bin or whatever your system mandates.
I'd agree with that, except for the fact that he is making a .deb to
be installed by the package manager.
In Debian...
/usr/bin is for stuff installed by the package manager which becomes
effectively part of the OS. The package manager tracks every file it
installes to ensure ovewrites can't happen etc...
/usr/local/bin is for stuff installed from source, not using the
package manager.
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list