How to manage python shebang on mixed systems?

Chris Green cl at isbd.net
Mon Nov 7 04:28:18 EST 2022


Chris Green <cl at isbd.net> wrote:
> > 3: with your pseudo "python3" script in place, make all the scripts use 
> > the "#!/usr/bin/env python3" shebang suggested above.
> > 
> Yes, that sounds a good plan to me, thanks Cameron.
> 
Doesn't '#!/usr/bin/env python3' suffer from the same problem as
'#!/usr/bin/python3' in the sense that the env executable might not be
in /usr/bin?

Wouldn't '#! env python3' be better?

-- 
Chris Green
·


More information about the Python-list mailing list