Misc collected fixes (#1497)

This commit is contained in:
recklesscoder
2023-03-04 16:34:10 +01:00
committed by GitHub
parent cd234fc04a
commit 30b70b2055
6 changed files with 7 additions and 6 deletions

View File

@@ -107,7 +107,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 not file.name.startswith(".") and \
if file.is_file() and not fname.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: