Automatically execute commands on launching python shell.

Posted by thepandaatemyface on Stack Overflow See other posts from Stack Overflow or by thepandaatemyface
Published on 2010-04-06T19:36:09Z Indexed on 2010/04/06 19:43 UTC
Read the original article Hit count: 155

Filed under:
|

Hi,

I was wondering if there is a way to automatically run commands on entering the python shell as you would with the .bash_profile or .profile scripts with bash. I would like to automatically import some modules so I don't have to type the whole shebang everytime I hop into the shell.

Thanks,

© Stack Overflow or respective owner

Related posts about python

Related posts about shell