fix wrong function name (#12826)

AttributeError: module 'ntpath' has no attribute 'is_dir'. Did you mean: 'isdir'?
This commit is contained in:
enximi 2024-06-09 10:23:24 +08:00 committed by GitHub
parent 98544f04fc
commit 86a447de9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -708,7 +708,7 @@ def main(args):
# logger
log_file = args.save_log_path
if os.path.is_dir(args.save_log_path) or (
if os.path.isdir(args.save_log_path) or (
not os.path.exists(args.save_log_path) and args.save_log_path.endswith("/")
):
log_file = os.path.join(log_file, "benchmark_recognition.log")