Implemented PEP 405 (Python virtual environments).

This commit is contained in:
Vinay Sajip 2012-05-26 03:45:29 +01:00
parent f2bdc3690a
commit 7ded1f0f69
41 changed files with 1454 additions and 66 deletions

View file

@ -0,0 +1,11 @@
#!__VENV_PYTHON__
if __name__ == '__main__':
rc = 1
try:
import sys, re, packaging.run
sys.argv[0] = re.sub('-script.pyw?$', '', sys.argv[0])
rc = packaging.run.main() # None interpreted as 0
except Exception:
# use syntax which works with either 2.x or 3.x
sys.stderr.write('%s\n' % sys.exc_info()[1])
sys.exit(rc)