Browse Source

fix python script

pull/421/head
lumapu 2 years ago
parent
commit
65762a6e17
  1. 6
      src/web/html/convert.py

6
src/web/html/convert.py

@ -52,13 +52,13 @@ def convert2Header(inFile):
f.write("#endif /*__{}_{}_H__*/\n".format(define, define2))
f.close()
# delete all files in the 'h' dir, but ignore 'favicon_ico_gz.h'
# delete all files in the 'h' dir
dir = 'h'
if os.getcwd()[-4:] != "html":
dir = "web/html/" + dir
for f in os.listdir(dir):
#if not f.startswith('favicon_ico_gz'):
if os.path.exists(dir):
for f in os.listdir(dir):
os.remove(os.path.join(dir, f))
# grab all files with following extensions

Loading…
Cancel
Save