adding new paths to sys.path

Jon Perez jbperez808 at yahoo.com
Thu Mar 6 23:57:07 EST 2003


Under Slackware Linux, I've installed Python
modules in /usr/local/lib/python2.2/site-packages
instead of /usr/lib/python2.2/site-packages and
now Python can't find the newer modules.

In the interactive command line, I can always
add this new directory to sys.path, however,
that won't do for scripts run from the command
line.

What do I change to get these new package paths
added to the default paths searched by Python
when running a script?






More information about the Python-list mailing list