Resolve correct python path on windows (#2373)

This commit is contained in:
Elijah Ahianyo 2024-01-09 09:58:06 -08:00 committed by GitHub
parent 400c9caf3f
commit 26a9e79a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,8 +121,8 @@ def get_node_bin_path() -> str | None:
""" """
if not os.path.exists(constants.Node.BIN_PATH): if not os.path.exists(constants.Node.BIN_PATH):
str_path = which("node") str_path = which("node")
return str(Path(str_path).parent) if str_path else str_path return str(Path(str_path).parent.resolve()) if str_path else str_path
return constants.Node.BIN_PATH return str(Path(constants.Node.BIN_PATH).resolve())
def get_node_path() -> str | None: def get_node_path() -> str | None: