From 4ee9cb2e2f6a3f624a39c633c86dc8d572f764bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 7 Aug 2017 11:12:51 +0200 Subject: [PATCH] px4airframes markdown: always use '/' for path separation Because it's an URL and os.path.join() will use '\' on windows. --- Tools/px4airframes/markdownout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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