autoexecution in Windows
rbt at athop1.ath.vt.edu
Mon Mar 7 22:06:46 CET 2005
Earl Eiland wrote:
> In Linux, if I make the first line #!/path/to/Python, all I have to do
> to execute the program is type ./FileName (assuming my pwd is the same
> as FileName). what's the Windows equivalent?
> On Mon, 2005-03-07 at 13:36, F. Petitjean wrote:
>>Le Mon, 07 Mar 2005 13:25:35 -0700, Earl Eiland a écrit :
>>>How does one make a Python program auto-execute in Windows?
>>write a virus ? :-)
>>What do you mean by « auto-execute » ?
Look at the 'pathext' variable under the system's environmental
variables. Add .py and .pyw to that and you're good to go.
More information about the Python-list