Skip to content

Commit 40d0c77

Browse files
committed
remove unused post_path_entries
1 parent 618c983 commit 40d0c77

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

make.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ def pre_path_entries(self) -> list[str]:
308308
r".." + self.NODEJS_PATH_REL,
309309
]
310310

311-
@property
312-
def post_path_entries(self) -> list[str]:
313-
"""Returns a list of PATH entries to append to the environment."""
314-
return []
315-
316311
@property
317312
def tools_directories(self) -> list[Path]:
318313
"""Returns the list of tools directories to include."""
@@ -464,10 +459,10 @@ def _create_initial_batch_scripts(self):
464459
self._print_action("Creating initial batch scripts")
465460

466461
path_entries_str = ";".join([rf"%WINPYDIR%\{pth}" for pth in self.pre_path_entries])
467-
full_path_env_var = f"{path_entries_str};%PATH%;" + ";".join([rf"%WINPYDIR%\{pth}" for pth in self.post_path_entries])
462+
full_path_env_var = f"{path_entries_str};%PATH%"
468463

469464
path_entries_ps_str = ";".join([rf"$env:WINPYDIR\\{pth}" for pth in self.pre_path_entries])
470-
full_path_ps_env_var = f"{path_entries_ps_str};$env:path;" + ";".join([rf"$env:WINPYDIR\\{pth}" for pth in self.post_path_entries])
465+
full_path_ps_env_var = f"{path_entries_ps_str};$env:path"
471466

472467
# Replacements for batch scripts (PyPy compatibility)
473468
exe_name = self.distribution.short_exe if self.distribution else "python.exe" # default to python.exe if distribution is not yet set

0 commit comments

Comments
 (0)