Dennis Lee Bieber wrote:
On Sun, 12 Oct 2008 15:07:57 -0700, "W. eWatson"
<[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
I worked my way into the folder where the py program is, but couldn't
executed. Just entering aprog.py, run aprog.py or exec aprog.py didn't work.
Try:
python aprog.py
If that doesn't work, you'll need to check your environment variable
PATH to make sure the directory with the python interpreter is on it...
(I've added spaces and/or newlines after the ; to make for easier
reading)
Path=E:\Python24\; E:\GNAT\2008\bin; C:\WINDOWS\system32; C:\WINDOWS;
C:\WINDOWS\System32\Wbem; C:\Program Files\SciTE;
C:\Program Files\Java\jre1.6.0_03\bin;
C:\Program Files\Java\jdk1.6.0_03\bin;
C:\Program Files\Common Files\Adobe\AGL; C:\Tcl\bin;
C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;
C:\Program Files\Common Files\Roxio Shared\DLLShared\;
C:\PROGRA~1\MySQL\MySQL Server 5.0\bin;
C:\Program Files\TortoiseSVN\bin; E:\GNAT\GtkAda\bin; C:\MSSQL7\BINN;
c:\PROGRA~1\sdb\programs\bin; c:\PROGRA~1\sdb\programs\pgm; c:\Regina;
e:\Python24\Scripts
It IS possible to set an association so that *.py will invoke python
as the processor. Part of is the environment variable pathext...
PATHEXT=.COM;.EXE;.BAT;.pyw;.py;.pyo;.pyc;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl
But I think something else was required... Ah
FTYPE Python.File="E:\Python24\python.exe" "%1" %*
I entered at the H:\......\python_dev\ prompt
FTYPE Python.File="C:\Python24\python.exe" aprog.py
but nothing happened. Nothing at all in the console window other than it
still shows the folder path in the prompt. Well not quite. It just responded
with python.exe" aprog.py.
Is there some way to copy in and out of the console. A copy/paste seems to
get nowhere.
It's odd that I cannot widen the console window. It shows <---> when I grab
a side.
Maybe I'll compile the code, as suggested by a poster above. I don't think
IDLE will do that, but I can probably find something that will.
Ah, I found py2exe and installed it. It shows up nowhere in my Start->All
Programs. It may be in the list under Python. I see a command line entry off
that men. I don't think it was there. Off for more exploring.
--
W. eWatson
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
Web Page: <www.speckledwithstars.net/>
--
http://mail.python.org/mailman/listinfo/python-list