replace common.file_helpers.mkdirs_exists_ok with python os.makedirs funtion (#30618)

replace common.file_helpers.mkdirs_exists_ok with python os.makedirs function
old-commit-hash: db35dcd0b5353d9c009fcf5817e611125a6b0b8b
This commit is contained in:
Greg Hogan
2023-12-06 09:55:29 -08:00
committed by GitHub
parent a2df43c05e
commit e91032efb3
6 changed files with 6 additions and 20 deletions
@@ -4,7 +4,6 @@ import os
from tqdm import tqdm
from openpilot.common.file_helpers import mkdirs_exists_ok
from openpilot.tools.lib.logreader import LogReader
from openpilot.tools.lib.route import Route
@@ -17,7 +16,7 @@ if __name__ == "__main__":
args = parser.parse_args()
out_path = os.path.join("jpegs", f"{args.route.replace('|', '_')}_{args.segment}")
mkdirs_exists_ok(out_path)
os.makedirs(out_path, exist_ok=True)
r = Route(args.route)
path = r.log_paths()[args.segment] or r.qlog_paths()[args.segment]