[Tutor] issue about startup file of python

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Mon, 13 Nov 2000 04:16:27 -0800 (PST)

On Mon, 13 Nov 2000, deng wei wrote:

> hello,every:
>     I am using python in command mode under windows98.
> I don't know how to write a startup file in this situation.
> I always starting python using following methods,assuming the python was
> installed at c:\python.
> c:\>python
> copyright,notice.....etc
> >>>import mystartup.py
> >>>
>   How can i do? thanks.

You don't need to append '.py' when you do imports.

    import mystartup

should be enough, assuming that 'mystartup.py' is in your c:\>
directory.  Hope this helps!