Tasmota/pio-tools/pre_source_dir.py

13 lines
269 B
Python
Raw Normal View History

2022-12-22 16:50:40 +00:00
Import("env")
2022-06-01 13:43:23 +01:00
import glob
import os
def FindInoNodes(env):
src_dir = glob.escape(env.subst("$PROJECT_SRC_DIR"))
return env.Glob(os.path.join(src_dir, "*.ino")) + env.Glob(
os.path.join(src_dir, "tasmota_*", "*.ino")
2022-06-01 13:43:23 +01:00
)
env.AddMethod(FindInoNodes)