[EMAIL PROTECTED] writes: > I have written some functions in a file called btools.py. I would like > to import them automatically when I start up Python shell. Today I must > do it by hand like this > >>>> from btools import * >>>> dir() > ['__builtins__', '__doc__', '__name__', 'func1', 'func2', 'func3'] >>>> > > Is there a way to do this automatically so that I always have 'func1', > 'func2' and so on available, without me having to do it by hand?
Set the PYTHONSTARTUP environment variable to the name of a python file that does the "from btools import *". <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list