mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440)
This commit is contained in:
parent
2aab5d310c
commit
d5a70c6b03
3 changed files with 9 additions and 0 deletions
|
@ -154,6 +154,8 @@ class EnvBuilder:
|
|||
incl = 'false'
|
||||
f.write('include-system-site-packages = %s\n' % incl)
|
||||
f.write('version = %d.%d.%d\n' % sys.version_info[:3])
|
||||
if self.prompt is not None:
|
||||
f.write(f'prompt = {self.prompt!r}\n')
|
||||
|
||||
def symlink_or_copy(self, src, dst, relative_symlinks_ok=False):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue