summaryrefslogtreecommitdiffstats
path: root/Lib/venv/scripts/nt/pysetup3.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/venv/scripts/nt/pysetup3.py')
-rw-r--r--Lib/venv/scripts/nt/pysetup3.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/venv/scripts/nt/pysetup3.py b/Lib/venv/scripts/nt/pysetup3.py
new file mode 100644
index 0000000..cfc6661
--- /dev/null
+++ b/Lib/venv/scripts/nt/pysetup3.py
@@ -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)