replaced os.system approach with os.mkdir

This commit is contained in:
Sid1057 2021-08-06 17:11:32 +03:00 committed by DSantosO
parent 97e40a2aed
commit 9e0e04aae4
1 changed files with 2 additions and 1 deletions

View File

@ -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]