Running Python scripts from BASH
Ross Ridge
rridge at caffeine.csclub.uwaterloo.ca
Wed Feb 28 00:27:37 EST 2007
More information about the Python-list mailing list
Wed Feb 28 00:27:37 EST 2007
- Previous message (by thread): Running Python scripts from BASH
- Next message (by thread): Running Python scripts from BASH
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ishpeck <ishpeck at gmail.com> wrote: >': [Errno 22] Invalid argumentopen file 'foo.py The problem is that Python is using the standard Windows CRLF line endings, while Cygwin bash expects Unix LF-only line endings. Your script ends up trying run the script "foo.y\r" instead of "foo.y", and since CR is isn't allowed in Windows filename you get the "Invalid argument" error when Python tries to open the file. >Maybe this is a better question for a BASH-related group. The Cygwin list probably would've been the best. >How do I get around this? Don't mix Cygwin tools and native Windows tools. Either use the Cygwin version of Python or don't use Cygwin bash. Ross Ridge
- Previous message (by thread): Running Python scripts from BASH
- Next message (by thread): Running Python scripts from BASH
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list