1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-02-11 07:03:07 +01:00

Merge branch 'wellenvogel:master' into master

This commit is contained in:
Norbert Walter
2026-02-02 21:39:00 +01:00
committed by GitHub
67 changed files with 2458 additions and 848 deletions

View File

@@ -516,3 +516,16 @@ env.Append(
)
#script does not run on clean yet - maybe in the future
env.AddPostAction("clean",cleangenerated)
extraScripts=getFileList(getOption(env,'custom_script',toArray=True))
for script in extraScripts:
if os.path.isfile(script):
print(f"#extra {script}")
with open(script) as fh:
try:
code = compile(fh.read(), script, 'exec')
except SyntaxError as e:
print(f"#ERROR: script {script} does not compile: {e}")
continue
exec(code)
else:
print(f"#ERROR: script {script} not found")