diff --git a/src/lib/component_information/generate_component_general.py b/src/lib/component_information/generate_component_general.py index 35445f1b888b..3561cae46d8f 100755 --- a/src/lib/component_information/generate_component_general.py +++ b/src/lib/component_information/generate_component_general.py @@ -20,7 +20,7 @@ version_dir = '' if version_file is not None: for line in open(version_file, "r"): - version_search = re.search('PX4_GIT_TAG_OR_BRANCH_NAME\s+"(.+)"', line) + version_search = re.search(r'PX4_GIT_TAG_OR_BRANCH_NAME\s+"(.+)"', line) if version_search: version_dir = version_search.group(1) break