From fd2a4c285310d13b2448f90e46787ebcdb41d484 Mon Sep 17 00:00:00 2001 From: mik-tf Date: Fri, 11 Oct 2024 02:33:45 -0400 Subject: [PATCH] test simpler strings for windows path --- flist.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flist.v b/flist.v index 5ffe45c..4df705d 100644 --- a/flist.v +++ b/flist.v @@ -56,10 +56,10 @@ fn add_path_windows() { new_env_path := '${current_path};${new_path}' // Prepare the command to set the new PATH - cmd := 'setx PATH "${new_env_path}"' + cmd := r'setx PATH "' + new_env_path + '"' // Execute the command to update the PATH - exit_code := os.system(cmd.replace('"$', '${new_env_path}"')) + exit_code := os.system(cmd) if exit_code == 0 { println('PATH updated successfully.')