Update 'scripts/setup-generator.py'

pull/4/head
drunkendog 2022-09-26 14:46:19 +01:00
parent 76486b7509
commit 54922552c5
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ for directory in directories:
manifest_info = [line_info.split("\n@ ") for line_info in f.read().split("%")]
for replacement in manifest_info:
if len(replacement) <= 2:
print(replacement)
if len(replacement) == 2:
replacement.append("-1")
current_setup_template.replace(replacement[0].rstrip("\n"), replacement[1].rstrip("\n"), int(replacement[2].rstrip("\n")))