automatically import modules upon interpreter invocation
Daniel Fetchinson
fetchinson at googlemail.com
Wed Jun 25 04:44:16 EDT 2008
>> 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
>> up so that I don't have to type it all the time?
>>
>> Cheers,
>> Daniel
>>
> environment variable PYTHONSTARTUP can be set to a python file that runs
> when you start the python interpreter
Great, thanks!
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
More information about the Python-list
mailing list