python 2.0 won't run scripts with \r\n line termination on RH7?
Carel Fellinger
cfelling at iae.nl
Sun Feb 11 19:54:03 EST 2001
...
> Most likely, this is not a Python 'problem'; the 'problem' is with Linux.
> The first line of your script has a '#!<path to Python>' and there is a
> carriage return at the end of the word 'python'. Since you don't have
> a program on your system called 'python\r', it won't run.
> The best thing to do is simply use newlines only, since it will work on
> both. I was going to say that you could also just put a space after the
> word python on your shebang line (#!python \r), but then Python tries
> to open '\r' as a script, because Linux supplies the \r as a command
> line argument. Sometimes, you just can't win....
Ne, one space wont do, try around 112 and to your delight it will work
--
groetjes, carel
More information about the Python-list
mailing list