autoexecution in Windows
rbt
rbt at athop1.ath.vt.edu
Mon Mar 7 16:06:46 EST 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?
> Earl
>
> 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?
>>>
>>>Earl
>>>
>>
>>write a virus ? :-)
>>
>>What do you mean by « auto-execute » ?
>>
>>Regards
>
>
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
mailing list