gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH] Fixes shebang line in devtools/striplog.


From: Fred Wright
Subject: Re: [gpsd-dev] [PATCH] Fixes shebang line in devtools/striplog.
Date: Wed, 13 Apr 2016 15:59:59 -0700 (PDT)

On Wed, 13 Apr 2016, Gary E. Miller wrote:
> On Wed, 13 Apr 2016 15:27:08 -0700 (PDT)
> Fred Wright <address@hidden> wrote:
>
> > It runs 'python' as found in your PATH, rather than using the specific
> > path in the former version, which might not even exist if that's not
> > where your default Python is installed.  See, e.g.:
>
> Ah, the #! needs a full path, and we want to search the path.  That
> makes sense.

Note that it's not uncommon for *installed* Python programs to have the
"direct form" of the shebang line pointing at the exact Python that
they're intended to use (especially when they need third-party libraries),
but that's installation-specific and shouldn't be used for distributed
"source" versions.

The env-style format can also use versioned names like 'python3' or
'python2.7'; it can be any valid Python command in the PATH.
Unfortunately it can't specify version ranges, though. :-)

Fred Wright



reply via email to

[Prev in Thread] Current Thread [Next in Thread]