Re: automatically import modules upon interpreter invocation

2008-06-26 Thread Jeffrey Froman
Daniel Fetchinson wrote: > Is there a way of making python execute the above whenever it starts > up so that I don't have to type it all the time? Create a script containing these statements, and specify its location with the PYTHONSTARTUP environment variable. Your script will run whenever pytho

Re: automatically import modules upon interpreter invocation

2008-06-25 Thread Daniel Fetchinson
>> Hi folks, this seems like a very basic thing but I couldn't find a >> solution. >> I always do the following after starting the python interpreter (on >> linux): >> >> import rlcompleter >> import readline >> readline.parse_and_bind("tab: complete") >> >> Is there a way of making python execute

Re: automatically import modules upon interpreter invocation

2008-06-25 Thread Ken Seehart
Daniel Fetchinson wrote: Hi folks, this seems like a very basic thing but I couldn't find a solution. I always do the following after starting the python interpreter (on linux): import rlcompleter import readline readline.parse_and_bind("tab: complete") Is there a way of making python execute t

automatically import modules upon interpreter invocation

2008-06-25 Thread Daniel Fetchinson
Hi folks, this seems like a very basic thing but I couldn't find a solution. I always do the following after starting the python interpreter (on linux): import rlcompleter import readline readline.parse_and_bind("tab: complete") Is there a way of making python execute the above whenever it starts