[Pythonmac-SIG] Setting paths (or: getting a script to run on startup with the IDE)

Ryan Wilcox ryanwilcox@mac.com
Thu, 9 Aug 2001 01:41:43 -0400


Hi folks,

I would really like to keep some of my modules NOT in the python folder, but in
my own folder elsewhere. Ok, I think I can do this with python's sys.path
functions. The world is good.


The clincher is that I often use Python IDE's interactive mode as a kind of
shell to execute my scripts. (think shell-style commands... not ones easily
translatable into a 'real' GUI so that I could use it from the menu bar)

AND I don't want to have to remember to type sys.path.append(myPath) every time
I launch the IDE.

So, my question is two-fold:

     #1: Can I set search paths through the IDE? I see 'Scripts Folder'
     location settings, but I don't think these are search paths...
     
     #2: If not, can I specify a command I want the IDE to run
     on startup?

     (and if #2 is false, any hints on where in the IDE's code I should
     start to add this capability? At least _I_ think it would be useful ;-) )

Thanks a bunch for the help,
-Ryan Wilcox
(*r.out*)