Re: #! /usr/bin/python{,3} -Es
* Barry Warsaw <barry@python.org>, 2012-10-25, 10:56:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/938869
When you write system scripts like 'lsb_release' that use
/usr/bin/python{,3} in the #! line, please remember to include -Es
switches. This prevents the crash in question, where a VMware
installer script was mucking with $PYTHONHOME for its own purposes,
with the side effect of breaking Python's search for its stdlib. The
bug notices it in lsb_release first, and we fixed that in Ubuntu, but
any other Python-based system script that the VMware script would have
called would also be broken.
Surely that's a bug in VMware, not in lsb_release?
--
Jakub Wilk
Reply to: