cpython/Lib/venv/__main__.py
Brett Cannon e218e5022e
GH-83417: Allow venv to add a .gitignore file to environments via a new scm_ignore_file parameter (GH-108125)
This feature is off by default via code but on by default via the CLI. The `.gitignore` file contains `*` which causes the entire directory to be ignored.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-15 22:38:08 +00:00

11 lines
141 B
Python

import sys
from . import main
rc = 1
try:
main()
rc = 0
except Exception as e:
print('Error:', e, file=sys.stderr)
sys.exit(rc)