mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-15 06:53:07 +01:00
#100: allow to set custom_config, custom_js, custom_css
This commit is contained in:
@@ -465,7 +465,9 @@ def getOption(env,name,toArray=True):
|
||||
if toArray:
|
||||
if opt is None:
|
||||
return []
|
||||
return opt.split(',')
|
||||
if isinstance(opt,list):
|
||||
return opt
|
||||
return opt.split("\n" if "\n" in opt else ",")
|
||||
return opt
|
||||
except:
|
||||
pass
|
||||
@@ -488,9 +490,9 @@ def prebuild(env):
|
||||
if ldf_mode == 'off':
|
||||
print("##ldf off - own dependency handling")
|
||||
handleDeps(env)
|
||||
extraConfigs=getOption(env,'extra_config',toArray=True)
|
||||
extraJs=getOption(env,'extra_js',toArray=True)
|
||||
extraCss=getOption(env,'extra_css',toArray=True)
|
||||
extraConfigs=getOption(env,'custom_config',toArray=True)
|
||||
extraJs=getOption(env,'custom_js',toArray=True)
|
||||
extraCss=getOption(env,'custom_css',toArray=True)
|
||||
|
||||
userTaskDirs=getUserTaskDirs()
|
||||
mergedConfig=os.path.join(outPath(),os.path.basename(CFG_FILE))
|
||||
|
||||
Reference in New Issue
Block a user