diff --git a/platformio_pre.py b/platformio_pre.py index d8d56f87..66f459c4 100644 --- a/platformio_pre.py +++ b/platformio_pre.py @@ -1,12 +1,12 @@ import os -import glob +import glob import shutil import re # The list of items files = glob.glob('libs/main/*/*.h', recursive=True) files += glob.glob('libs/main/*.h', recursive=True) - + tdir = './include/' if os.path.exists(tdir): @@ -74,7 +74,7 @@ with open('CMakeLists.txt') as cm: version_h.replace('${VERSION_MAJOR}', v_major[0]) version_h.replace('${VERSION_MINOR}', v_minor[0]) version_h.replace('${VERSION_REVISION}', v_rev[0]) - if len(v_suffix): + if len(v_suffix): ver += v_suffix[0] version_h.replace('${VERSION_SUFFIX}', v_suffix[0]) else: