mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-25 11:56:04 +00:00
Fixed script to generate webroot header files
This commit is contained in:
@@ -5,9 +5,10 @@ import shutil
|
||||
webroot = "web"
|
||||
srcroot = "src/web/root"
|
||||
|
||||
shutil.rmtree(srcroot)
|
||||
|
||||
if not os.path.exists(srcroot):
|
||||
if os.path.exists(srcroot):
|
||||
shutil.rmtree(srcroot)
|
||||
else:
|
||||
os.mkdir(srcroot)
|
||||
|
||||
for filename in os.listdir(webroot):
|
||||
|
||||
Reference in New Issue
Block a user