From 9e0e04aae4ed7ef52e0d35319aea579ced580256 Mon Sep 17 00:00:00 2001 From: Sid1057 Date: Fri, 6 Aug 2021 17:11:32 +0300 Subject: [PATCH] replaced os.system approach with os.mkdir --- PythonAPI/examples/lidar_to_camera.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PythonAPI/examples/lidar_to_camera.py b/PythonAPI/examples/lidar_to_camera.py index dac178ea1..468cf1766 100644 --- a/PythonAPI/examples/lidar_to_camera.py +++ b/PythonAPI/examples/lidar_to_camera.py @@ -75,7 +75,8 @@ def tutorial(args): lidar = None try: - os.system('mkdir -p _out' if os.name != 'nt' else 'if not exist _out mkdir _out') + if not os.path.isdir('_out'): + os.mkdir('_out') # Search the desired blueprints vehicle_bp = bp_lib.filter("vehicle.lincoln.mkz_2017")[0] camera_bp = bp_lib.filter("sensor.camera.rgb")[0]