8000 bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382) by akulakov · Pull Request #30382 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382) 8000 #30382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update var names
  • Loading branch information
akulakov committed Jan 4, 2022
commit 0c7643c63922341855decc1fc8a7002f7d861db9
4 changes: 2 additions & 2 deletions Lib/test/test_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def test_defaults(self):
executable = sys._base_executable
path = os.path.dirname(executable)
self.assertIn('home = %s' % path, data)
self.assertIn('env_exec_cmd = %s' %
self.assertIn('executable = %s' %
os.path.join(self.env_dir, self.bindir, self.exe), data)
self.assertIn('env_create_cmd = %s' % self.exe, data)
self.assertIn('command = %s' % self.exe, data)
fn = self.get_env_file(self.bindir, self.exe)
if not os.path.exists(fn): # diagnostics for Windows buildbot failures
bd = self.get_env_file(self.bindir)
Expand Down
4 changes: 2 additions & 2 deletions Lib/venv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def create_configuration(self, context):
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')
f.write('env_exec_cmd = %s\n' % context.env_exec_cmd)
f.write('env_create_cmd = %s\n' % ' '.join(sys.argv))
f.write('executable = %s\n' % context.env_exec_cmd)
f.write('command = %s\n' % ' '.join(sys.argv))

if os.name != 'nt':
def symlink_or_copy(self, src, dst, relative_symlinks_ok=False):
Expand Down
0