python problems with dos lineendings in python-scripts

Steve Holden steve at holdenweb.com
Sat Oct 22 09:45:32 EDT 2005


marco wrote:
> hi folks,
> 
> i can not run any python scripts with dos lineendings under cygwin's python.
> if i run such a scripts i get stupid syntax error messages from python.
> 
> what can i do to run these scripts without changing the lineending of these scripts.
> 
> regards marco
> 
The only time line endings will make a difference is if there's a 
carriage return on the shebang line. If you run the script using

   python script.py

you should find that you get no problems at all.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list