[Starlingx-discuss] #! /usr/bin/env usage in python files

Dean Troyer dtroyer at gmail.com
Wed Jun 12 16:25:56 UTC 2019


On Wed, Jun 12, 2019 at 9:59 AM Bailey, Henry Albert (Al)
<Al.Bailey at windriver.com> wrote:
> For cases where we created custom python scripts using  /usr/bin/env,  it's likely because  google/stackoverflow  indicate that's the preferred way.   There's no specific reason to code it that way, as far as I can remember.

Outside of a distro context the biggest reason I do that (use
#!/usr/bin/env) is to make using virtual environments easier.  I do
not think that is a large concern here, the first place I could see it
coming up is running in DevStack with virtual envs enabled, which is
not as much of a thing as it should be and probably doesn't work now
anyway.

dt

-- 
Dean Troyer
dtroyer at gmail.com



More information about the Starlingx-discuss mailing list