I dunno about .pythonrc.py. The docs I read said to put startup code in ~/.python-startup.py and this is what I use successfully. In order to modify python's search path from python code you just need to manipulate the sys.path list, eg.:
import sys sys.path.append('path-to-append') In order to augment the python search path from an environment variable just set PYTHONPATH (colon-separated list just as the PATH variable). This is in the man page. Did you read the fine manual? Douglas Bates wrote: > According to some python documentation I have read I should put > commands that I want executed in every interactive python session into > the file `~/.pythonrc.py'. I have done that but these commands do not > seem to be executed when I start python on a Debian GNU/Linux 2.1 > system with > ||/ Name Version Description > +++-===============-==============-============================================ > ii python-base 1.5.1-7 An interactive object-oriented scripting > lan > > Is there another convention for python startup with this package? > > Also, what is the recommended form for adding to the python search > path? I believe there is an environment variable to set. > > Please cc: me on replies. I am unable to keep up with the amount of > traffic on this list. > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null -- Jens B. Jorgensen [EMAIL PROTECTED]