Message293640
If the user is operating in a virtual environment they are ring fenced and, presumably, don't wish any other versions of python to be used, (regardless of the SheBang in the files).
Since we don't AFAIK have any possibility of mixed virtual environments ignoring SheBangs should meet the basic requirements of operating inside of a venv.
How about a simple, but brutal approach, of if VIRTUAL_ENV is set in the current environment then always use the virtual environment python and launch with the -x option (ignore first line). This is the equivalent of using a version specifier as well as having a SheBang. This way the wrong python for the script might be executed but that is the responsibility of the person who set up the venv. |
|
Date |
User |
Action |
Args |
2017-05-14 08:36:33 | Steve Barnes | set | recipients:
+ Steve Barnes, paul.moore, vinay.sajip, tim.golden, zach.ware, eryksun, steve.dower, wdhwg001, ricpol |
2017-05-14 08:36:33 | Steve Barnes | set | messageid: <1494750993.44.0.0616180473289.issue28686@psf.upfronthosting.co.za> |
2017-05-14 08:36:33 | Steve Barnes | link | issue28686 messages |
2017-05-14 08:36:33 | Steve Barnes | create | |
|