[Tutor] Environmental variables?

Alan Gauld ukc802591034 at btconnect.com
Fri Mar 3 00:21:26 CET 2006

> You can do this by setting an environment variable named PYTHONSTARTUP to
> name of a file containing your start-up commands
> How do I set environmental variables in Windows?

If it's Windows 9x/Me use AUTOEXEC.BAT.

SET PTYTHONSTARTUP C:\mypath\myfile.py

If its Windows NT/2000/XP
right click My Computer,
select Properties,
select Advanced tab
click Environment Variables.
click New

Hopefully self explanatory after that.

In either environment searching for envoironment variable in
the windows help system gives the answer... The Windows
help files are a greatly under used feature of the OS...IMHO

Alan G.

More information about the Tutor mailing list