diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-26 03:45:29 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-26 03:45:29 +0100 |
commit | 7ded1f0f694f0f99252ea19eca18b74ea5e36cb0 (patch) | |
tree | 1f07c57fddc9627f3d506b7a8d25ded561f5a2e0 /Lib/venv/__main__.py | |
parent | f2bdc3690a59ca2af3f2fa82f506350874ff1467 (diff) | |
download | cpython-git-7ded1f0f694f0f99252ea19eca18b74ea5e36cb0.tar.gz |
Implemented PEP 405 (Python virtual environments).
Diffstat (limited to 'Lib/venv/__main__.py')
-rw-r--r-- | Lib/venv/__main__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/venv/__main__.py b/Lib/venv/__main__.py new file mode 100644 index 0000000000..912423e4a7 --- /dev/null +++ b/Lib/venv/__main__.py @@ -0,0 +1,10 @@ +import sys +from . import main + +rc = 1 +try: + main() + rc = 0 +except Exception as e: + print('Error: %s' % e, file=sys.stderr) +sys.exit(rc) |