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
This commit is contained in:
Fabian Dill 2022-06-15 03:10:41 +02:00 committed by GitHub
parent 681f7041dc
commit 55d8c8c928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)