Skip to content

Commit 86a447d

Browse files
authored
fix wrong function name (#12826)
AttributeError: module 'ntpath' has no attribute 'is_dir'. Did you mean: 'isdir'?
1 parent 98544f0 commit 86a447d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/infer/predict_rec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def main(args):
708708

709709
# logger
710710
log_file = args.save_log_path
711-
if os.path.is_dir(args.save_log_path) or (
711+
if os.path.isdir(args.save_log_path) or (
712712
not os.path.exists(args.save_log_path) and args.save_log_path.endswith("/")
713713
):
714714
log_file = os.path.join(log_file, "benchmark_recognition.log")

0 commit comments

Comments
 (0)