mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Generate: don't try to include meta or filler weights file as player
This commit is contained in:
@@ -154,6 +154,7 @@ def main(args=None, callback=ERmain):
|
|||||||
# sort dict for consistent results across platforms:
|
# sort dict for consistent results across platforms:
|
||||||
weights_cache = {key: value for key, value in sorted(weights_cache.items())}
|
weights_cache = {key: value for key, value in sorted(weights_cache.items())}
|
||||||
for filename, yaml_data in 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:
|
for yaml in yaml_data:
|
||||||
print(f"P{player_id} Weights: {filename} >> "
|
print(f"P{player_id} Weights: {filename} >> "
|
||||||
f"{get_choice('description', yaml, 'No description specified')}")
|
f"{get_choice('description', yaml, 'No description specified')}")
|
||||||
|
|||||||
Reference in New Issue
Block a user