mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uorb_to_ros_msgs: only create dir if it doesn't exist
This commit is contained in:
parent
a07bcc499a
commit
84c6e07c5c
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user