From cbf2b47476b413d01c044ddfa72cd19ffe654a23 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 16 Nov 2023 09:33:36 -0800 Subject: [PATCH] Strip trailing "\" characters in CMD_FLAGS.txt --- one_click.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one_click.py b/one_click.py index 79dacd52..1fec4994 100644 --- a/one_click.py +++ b/one_click.py @@ -20,7 +20,7 @@ conda_env_path = os.path.join(script_dir, "installer_files", "env") cmd_flags_path = os.path.join(script_dir, "CMD_FLAGS.txt") if os.path.exists(cmd_flags_path): with open(cmd_flags_path, 'r') as f: - CMD_FLAGS = ' '.join(line.strip() for line in f if line.strip() and not line.strip().startswith('#')) + CMD_FLAGS = ' '.join(line.strip().rstrip('\\').strip() for line in f if line.strip().rstrip('\\').strip() and not line.strip().startswith('#')) else: CMD_FLAGS = ''