Shebang line on Windows?

Chris Angelico rosuav at
Mon Feb 25 14:54:28 CET 2013

On Tue, Feb 26, 2013 at 12:28 AM, Chris Gonnerman <chris at> wrote:
> On 02/25/2013 06:35 AM, Sells, Fred wrote:
>> When moving from windows to unix you need to run "dos2unix"   on any
>> programs that use shebang (at least with python 2.6)   that is installed on
>> some platforms but must be installed on others like CentOs but it is in
>> their repository.
> Or edit it in Vim and do
> :se ff=unix
> and then save it.

Or manage your files in git and set the core.autocrlf option to always
commit with Unix newlines (and you can optionally check files out with
DOS newlines, if you wish). Strongly recommended for cross-platform
work, as it "just happens" - no need to explicitly convert the file.


More information about the Python-list mailing list