From f07f814b081c0a1365cdd92938f5e56f6f423372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 11 Aug 2022 11:40:49 +0300 Subject: [PATCH] platformio_pre.py --- platformio_pre.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: