diff --git a/Tools/px4airframes/markdownout.py b/Tools/px4airframes/markdownout.py index 8903d4e6d0..a2eba57774 100644 --- a/Tools/px4airframes/markdownout.py +++ b/Tools/px4airframes/markdownout.py @@ -17,6 +17,8 @@ class MarkdownTablesOutput(): type_set = set() + if len(image_path) > 0 and image_path[-1] != '/': + image_path = image_path + '/' for group in groups: if group.GetClass() not in type_set: @@ -29,7 +31,7 @@ class MarkdownTablesOutput(): image_name = group.GetImageName() result += '
\n' if image_name != 'AirframeUnknown': - image_name = os.path.join(image_path, image_name) + image_name = image_path + image_name result += '\n' % (image_name) # check if all outputs are equal for the group: if so, show them