Getting started

Emile van Sebille emile at fenx.com
Fri Nov 2 20:27:11 EST 2001


"Jive Dadson" <jdadson at ix.netcom.com> wrote in message
news:3BE34358.8819E585 at ix.netcom.com...
> Okay, easy question:  How do I write a Python module and load it into
> the interactive console application?  MS Windows.  For example, if I put
> the script in a directory called, 'D:\\my python hacking', how do I tell
> the interactive console window I want to load the module 'hacking.py'
> from that directory?
>
> BTW, I tried putting setting a MS Windows system variable PYTHONSTARTUP
> to "print 'Hello, world.'", but it had no effect.

If you're just getting started on windows, I'd suggest getting and
installing the ActiveState distribution.  Much better OOB experience for
newbies.  ;-)

Once you've done that, you should be able to:

D:
cd 'my python hacking'
python hacking.py

HTH,

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list