From b8f882db88328f64021cf037630219f957fe9569 Mon Sep 17 00:00:00 2001 From: ElijahAhianyo Date: Tue, 9 Jan 2024 11:53:36 +0000 Subject: [PATCH] Resolve correct python path on windows --- reflex/utils/path_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/utils/path_ops.py b/reflex/utils/path_ops.py index ce1b88d986..3073dca0ec 100644 --- a/reflex/utils/path_ops.py +++ b/reflex/utils/path_ops.py @@ -121,8 +121,8 @@ def get_node_bin_path() -> str | None: """ if not os.path.exists(constants.Node.BIN_PATH): str_path = which("node") - return str(Path(str_path).parent) if str_path else str_path - return constants.Node.BIN_PATH + return str(Path(str_path).parent.resolve()) if str_path else str_path + return str(Path(constants.Node.BIN_PATH).resolve()) def get_node_path() -> str | None: