Generate: don't try to include meta or filler weights file as player

This commit is contained in:
Fabian Dill 2022-10-20 23:57:02 +02:00 committed by Fabian Dill
parent fa077defe0
commit 28483a6c14
1 changed files with 6 additions and 5 deletions

View File

@ -154,6 +154,7 @@ def main(args=None, callback=ERmain):
# sort dict for consistent results across platforms:
weights_cache = {key: value for key, value in sorted(weights_cache.items())}
for filename, yaml_data in weights_cache.items():
if filename not in {args.meta_file_path, args.weights_file_path}:
for yaml in yaml_data:
print(f"P{player_id} Weights: {filename} >> "
f"{get_choice('description', yaml, 'No description specified')}")