From 7f0ea4dc16651d23bb97c3795b02f0f14eee2de4 Mon Sep 17 00:00:00 2001 From: deevis Date: Fri, 22 Sep 2023 14:22:24 -0600 Subject: [PATCH] feature: allow comments in CMD_FLAGS.txt (#127) --------- Co-authored-by: missionfloyd --- one_click.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one_click.py b/one_click.py index c73ab042..0717bbf6 100644 --- a/one_click.py +++ b/one_click.py @@ -17,7 +17,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.read().splitlines() if line.strip()) + CMD_FLAGS = ' '.join(line.strip() for line in f if line.strip() and not line.strip().startswith('#')) else: CMD_FLAGS = ''