[Tutor] [Q] How to run a Python file from Windows 2000 folder

Young-Jin Lee ylee12@uiuc.edu
Mon, 20 Aug 2001 11:49:29 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0127_01C1296E.2B4C0BF0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, all.
I have a problem running a python file from windows 2000 folder.
I expected my python file to be executed when I double-clicked it, but I =
got "Program Not Found" error dialog box which required me to find where =
"Program.exe" is located. I guess it might be a window registry =
problem....
I manually assigned Python.exe to *py file in a property menu of the my =
python source file, but it didn't work.

What should I do to execute a python source file by double-clicking it?

Thanks in advance.

Young-Jin Lee

------=_NextPart_000_0127_01C1296E.2B4C0BF0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, all.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have a problem running a python file =
from windows=20
2000 folder.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I expected my python file to&nbsp;be =
executed when=20
I double-clicked it, but I got "Program Not Found" error dialog box =
which=20
</FONT><FONT face=3DArial size=3D2>required me to find where =
"Program.exe" is=20
located. I guess it might be a window registry problem....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I manually assigned Python.exe to *py =
file in a=20
property menu of the my python source file, but it didn't =
work.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What should I do to execute a python =
source file by=20
double-clicking it?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Young-Jin =
Lee</FONT></DIV></BODY></HTML>

------=_NextPart_000_0127_01C1296E.2B4C0BF0--