mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
uorb_to_ros_msgs: only create dir if it doesn't exist
This commit is contained in:
@@ -52,7 +52,8 @@ __status__ = 'Development'
|
||||
input_dir = sys.argv[1]
|
||||
output_dir = sys.argv[2]
|
||||
|
||||
os.mkdir(os.path.abspath(output_dir))
|
||||
if not os.path.exists(os.path.abspath(output_dir)):
|
||||
os.mkdir(os.path.abspath(output_dir))
|
||||
|
||||
msg_list = list()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user