#! Question

omission9 omission9 at invalid.email.info
Fri Feb 20 02:16:54 CET 2004

Ian Pellew wrote:
> Hi All;
> How do I get line one to call python:-
> This is line one in my python script 
> #!C:/Program Files/Python2.3.3/python.exe
> gives:-
> Win32_Prompt> "C:\Documents and Settings\ipellew\My Documents\gt.py"
> c:\Progra~1\Python2.3.3\python.exe: can't open file './C:\Documents
> and Settings\ipellew\My Documents\gt.py'
> my python script is in:-
> "C:\Documents and Settings\ipellew\My Documents"
> Regards
> Ian
You should have python.exe in you path. In any event, the space in 
"Program Files" is sure to cause trouble. Put anything with spaces 
inside double quotes.
#!"C:/Program Files/Python2.3.3/python.exe" will work.

More information about the Python-list mailing list