Resolve correct python path on windows (#2373)
This commit is contained in:
parent
400c9caf3f
commit
26a9e79a5f
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user