mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-12-29 16:08:23 +00:00
fix wrong function name (#12826)
AttributeError: module 'ntpath' has no attribute 'is_dir'. Did you mean: 'isdir'?
This commit is contained in:
parent
98544f04fc
commit
86a447de9f
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user