cross-platform imports: import hook for end-of-line conversion
Oleg Broytmann
phd at phd.fep.ru
Tue May 29 12:25:17 EDT 2001
On Tue, 29 May 2001, Pete Shinners wrote:
> #!/usr/bin/env python -eat
>
> that would definitely run on unix with windows linefeeds.
Wrong :(
----- file xxx ---
#!/usr/bin/env python -eat
print "Ok"
----- /file xxx ---
With DOS/Win line endings it is 40 bytes in length. Trying to run it:
phd at phd 6 >>> ./xxx
: No such file or directory
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list