Where I should put my python scripts in Linux? -
my python program consists of several files:
- the main execution python script
- python modules in *.py files
- config file
- log files
- executables scripts of other languages.
all files should available root. main script should run on startup, e.g. via upstart.
where should put files in linux filesystem?
what's better way distribution program? pip, easy_install, deb, ...? haven't worked of these tool, want easy me. minimum supported linux distributive should ubuntu.
for sure, if program available root, main execution python script have go /usr/sbin/.
config files ought go /etc/, , log files /var/log/.
other python files should deployed /usr/share/pyshared/.
executable scripts of other languages go either in /usr/bin/ or /usr/sbin/ depending on whether should available users, or root only.
Comments
Post a Comment