-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382) #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
Changes from 5 commits
9857b28
34f7943
0c7643c
e4bb85e
f93cae0
fabe6eb
74bbfeb
abef4f4
1184ffb
19d825e
ac22946
c891cac
5afeb8a
727c515
0d44a7d
9f06b55
0e519ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +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('executable = %s\n' % context.env_exec_cmd) | ||
f.write('command = %s\n' % sys.executable) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would something like this work?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not necessarily. The code to create a venv might be called programmatically through the
|
||
|
||
if os.name != 'nt': | ||
def symlink_or_copy(self, src, dst, relative_symlinks_ok=False): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Added two new variables to *pyvenv.cfg* which is generated by :mod:`venv` | ||
module: *executable* for the executable within the environment and *command* | ||
vsajip marked this conversation as resolved.
Show resolved
Hide resolved
|
||
for the command used to create the environment. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. command -> command line |
Uh oh!
There was an error while loading. Please reload this page.