correctly ignore base weights file in generate

This commit is contained in:
Fabian Dill 2021-07-24 14:42:34 +02:00
parent 78f565c706
commit b097f30f4d
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ def main(args=None, callback=ERmain):
player_files = {}
for file in os.scandir(args.player_files_path):
fname = file.name
if file.is_file() and fname not in {args.meta_file_path, args.weights_file_path}:
if file.is_file() and os.path.join(args.player_files_path, fname) not in {args.meta_file_path, args.weights_file_path}:
path = os.path.join(args.player_files_path, fname)
try:
weights_cache[fname] = read_weights_yaml(path)