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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -