Update 'scripts/setup-generator.py'

pull/4/head
drunkendog 2022-09-26 14:41:24 +01:00
parent b9bde7b717
commit 5024cc2d67
1 changed files with 2 additions and 2 deletions

View File

@ -11,13 +11,13 @@ if len(sys.argv) >= 2:
for directory in directories:
current_setup_template = setup_template
with open(f"{directory}/manifest.dat", "r") as f:
manifest_info = [line_info.split("\n@ ").rstrip("\n") for line_info in f.read().split("%")]
manifest_info = [line_info.split("\n@ ") for line_info in f.read().split("%")]
for replacement in manifest_info:
if len(replacement) == 2:
replacement.append(-1)
current_setup_template.replace(replacement[0], replacement[1], int(replacement[2]))
current_setup_template.replace(replacement[0].rstrip("\n"), replacement[1].rstrip("\n"), int(replacement[2].rstrip("\n")))
if glob.glob(f"{directory}/parser.py"):
should_continue = input(f"Custom instructions found in {directory}, continue? (Y/N) ")