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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user