mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Implemented PEP 405 (Python virtual environments).
This commit is contained in:
parent
f2bdc3690a
commit
7ded1f0f69
41 changed files with 1454 additions and 66 deletions
11
Lib/venv/scripts/nt/pysetup3-script.py
Normal file
11
Lib/venv/scripts/nt/pysetup3-script.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue