[Tutor] Path problems python 2.0

Bruce Sass bsass@freenet.edmonton.ab.ca
Thu, 1 Feb 2001 23:30:52 -0700 (MST)


On Wed, 31 Jan 2001, The Conways wrote:
> Now for a Linux question.  Python 1.52 came with our Mandrake 7.2
> installation.  So I am also learning some linux as well as python.  My
> question is where do you keep your py scripts in Linux, the file system is
> so organized that I am not really sure where to put things.

Generally, stuff the package manager does not know about should go into
/usr/local or /opt (depending on whether the package is setup to
install into the usual unix filesystem structure or into its own
directory, respectively), everything under /usr should be the result of
installing an .rpm.

Your Mandrake-Python maintainer probably has a dir set aside for local
modules, it is /usr/local/lib/site-python on my Debian box.  Checking
your PYTHONPATH while the interpreter is running will tell you all the
locations Python will look for modules.

If you are wondering about where to put executables so everyone can get
at them... /usr/local/bin
Maybe do, "echo $PATH", to make sure /usr/local/bin is in your PATH.


later,

	Bruce