diff --git a/Generate.py b/Generate.py index 35f3b7e9..ac18ca02 100644 --- a/Generate.py +++ b/Generate.py @@ -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)