Skip to content

Commit 540d965

Browse files
committed
Fix test.support.PythonSymlink on Windows source builds
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent aa6014a commit 540d965

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/support/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,9 +1716,10 @@ def _platform_specific(self):
17161716
))
17171717

17181718
self._env = {k.upper(): os.getenv(k) for k in os.environ}
1719-
self._env["PYTHONHOME"] = os.path.dirname(self.real)
1719+
home = os.path.dirname(self.real)
17201720
if sysconfig.is_python_build():
1721-
self._env["PYTHONPATH"] = STDLIB_DIR
1721+
home = os.path.join(home, sysconfig.get_config_var('VPATH'))
1722+
self._env["PYTHONHOME"] = home
17221723
else:
17231724
def _platform_specific(self):
17241725
pass

0 commit comments

Comments
 (0)