Update 'scripts/setup-generator.py'

pull/4/head
drunkendog 2022-09-27 18:33:20 +01:00
parent 4e3dbc4d9c
commit 0e800adee0
1 changed files with 4 additions and 0 deletions

View File

@ -9,7 +9,11 @@ if len(sys.argv) >= 2:
directories = sys.argv[1:]
for directory in directories:
if not glob.glob(f"{directory}/manifest.dat"):
continue
current_setup_template = setup_template
with open(f"{directory}/manifest.dat", "r") as f:
manifest_info = [line_info.split("\n@ ")[1:] for line_info in f.read().split("%")[1:]]