From 55d8c8c928f14a940b010078deb23b2a3fac9d3f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 15 Jun 2022 03:10:41 +0200 Subject: [PATCH] Generate: ignore files starting with ., something about Macs having a .DS_STORE or something. (#656) * Generate: ignore files starting with ., something about Macs having a .DS_STORE or something. * Generate: .name is important --- Generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Generate.py b/Generate.py index cbfb86e5..5b83b87d 100644 --- a/Generate.py +++ b/Generate.py @@ -108,7 +108,8 @@ 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 os.path.join(args.player_files_path, fname) not in {args.meta_file_path, args.weights_file_path}: + if file.is_file() and not file.name.startswith(".") 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_yamls(path)