shebang in cross platform scripts
Bill Mill
bill.mill at gmail.com
Wed Apr 6 13:33:09 EDT 2005
On Apr 6, 2005 11:06 AM, Ivan Van Laningham <ivanlan at pauahtun.org> wrote:
> Hi All--
>
> Simon Brunning wrote:
> >
> > On Apr 6, 2005 2:37 PM, rbt <rbt at athop1.ath.vt.edu> wrote:
> >
> > > Does the line below have any negative impact on Windows machines? I
> > > develop and test mostly on Unix, but my scripts are often used on Win
> > > systems too.
> > >
> > > #!/usr/bin/env python
> >
> > Nope. On Windows it's just a comment.
> >
>
> It works fine using cygwin, uwin, mks and pdksh, all available for
> Windows. Google is your friend.
>
> Symbolic links also work under uwin (don't know for sure about the
> others). That means you can install a link in /usr/bin to whereever
> python lives, and expect #!/usr/bin/python to work just fine.
This works in cygwin as well; I didn't mention cygwin since the OP
seemed to be asking about windows distribution, but it's a good point.
Peace
Bill Mill
More information about the Python-list
mailing list