Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
70adf6f7
Commit
70adf6f7
authored
Nov 23, 2012
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #16519: Merged fix from 3.3.
parents
ff790aac
27e4b605
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Lib/site.py
Lib/site.py
+3
-5
No files found.
Lib/site.py
View file @
70adf6f7
...
@@ -484,15 +484,13 @@ def venv(known_paths):
...
@@ -484,15 +484,13 @@ def venv(known_paths):
executable = os.environ['
__PYVENV_LAUNCHER__
']
executable = os.environ['
__PYVENV_LAUNCHER__
']
else:
else:
executable = sys.executable
executable = sys.executable
exe
cutable_dir, executable_name = os.path.split(executable
)
exe
_dir, _ = os.path.split(os.path.abspath(executable)
)
site_prefix = os.path.dirname(exe
cutable
_dir)
site_prefix = os.path.dirname(exe_dir)
sys._home = None
sys._home = None
if sys.platform == '
win32
':
executable_name = os.path.splitext(executable_name)[0]
conf_basename = '
pyvenv
.
cfg
'
conf_basename = '
pyvenv
.
cfg
'
candidate_confs = [
candidate_confs = [
conffile for conffile in (
conffile for conffile in (
os.path.join(exe
cutable
_dir, conf_basename),
os.path.join(exe_dir, conf_basename),
os.path.join(site_prefix, conf_basename)
os.path.join(site_prefix, conf_basename)
)
)
if os.path.isfile(conffile)
if os.path.isfile(conffile)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment