Skip to content

Commit

Permalink
Alternate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Dec 13, 2023
1 parent d579fa0 commit 6f77da3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Lib/test/test_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
def check_output(cmd, encoding=None):
p = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stderr=subprocess.PIPE,
env={**os.environ, "PYTHONHOME": ""})
out, err = p.communicate()
if p.returncode:
if verbose and err:
Expand Down
8 changes: 1 addition & 7 deletions Modules/getpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,7 @@ def search_up(prefix, *landmarks, test=isfile):
# ******************************************************************************

if not base_executable:
if executable:
try:
base_executable = realpath(executable)
except OSError:
base_executable = executable
else:
base_executable = real_executable or ''
base_executable = executable or real_executable or ''

if not real_executable:
real_executable = base_executable
Expand Down

0 comments on commit 6f77da3

Please sign in to comment.