mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 07:21:36 +08:00
move get_absolute_path() back to generate_microRTPS_bridge.py
This commit is contained in:
@@ -349,23 +349,6 @@ def print_field_def(field):
|
||||
array_size, comment))
|
||||
|
||||
|
||||
def get_absolute_path(arg_parse_dir):
|
||||
"""
|
||||
Get absolute path from dir
|
||||
"""
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
if isinstance(arg_parse_dir, list):
|
||||
dir = arg_parse_dir[0]
|
||||
else:
|
||||
dir = arg_parse_dir
|
||||
|
||||
if dir[0] != '/':
|
||||
dir = root_path + "/" + dir
|
||||
|
||||
return dir
|
||||
|
||||
|
||||
def check_available_ids(used_msg_ids_list):
|
||||
"""
|
||||
Checks the available RTPS ID's
|
||||
|
||||
Reference in New Issue
Block a user