mirror of
https://github.com/oobabooga/textgen.git
synced 2026-08-07 02:30:41 -05:00
Strip trailing "\" characters in CMD_FLAGS.txt
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user