By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,822 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,822 IT Pros & Developers. It's quick & easy.

Re: automatically import modules upon interpreter invocation

P: n/a
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 the above whenever it starts
up so that I don't have to type it all the time?

environment variable PYTHONSTARTUP can be set to a python file that runs
when you start the python interpreter

- Ken

Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.