Appending to sys.path during module install with distutils

2011-10-30 Thread Darren Hart
I'm trying to use distutils to install a collection of modules in /usr/local/lib/python2.7/site-packages. My distribution (Fedora 15) doesn't include any /usr/local paths in sys.path, so the import fails when running the program. The distutils documentation suggests adding a $NAME.pth file to an ex

Re: Appending to sys.path

2009-03-24 Thread Peter Otten
mhearne808[insert-at-sign-here]gmail[insert-dot-here]com wrote: > I have an application where I would like to append to the python path > dynamically. Below is a test script I wrote. Here's what I thought > would happen: > > 1) I run this script in a folder that is NOT already in PYTHONPATH > 2

Appending to sys.path

2009-03-24 Thread mhearne808[insert-at-sign-here]gmail[insert-dot-here]com
I have an application where I would like to append to the python path dynamically. Below is a test script I wrote. Here's what I thought would happen: 1) I run this script in a folder that is NOT already in PYTHONPATH 2) The script creates a subfolder called foo. 3) The script creates a file cal