mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-05 20:21:38 +02:00
fix python script
This commit is contained in:
parent
9c68ad1467
commit
65762a6e17
1 changed files with 4 additions and 4 deletions
|
@ -52,14 +52,14 @@ def convert2Header(inFile):
|
||||||
f.write("#endif /*__{}_{}_H__*/\n".format(define, define2))
|
f.write("#endif /*__{}_{}_H__*/\n".format(define, define2))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# delete all files in the 'h' dir, but ignore 'favicon_ico_gz.h'
|
# delete all files in the 'h' dir
|
||||||
dir = 'h'
|
dir = 'h'
|
||||||
if os.getcwd()[-4:] != "html":
|
if os.getcwd()[-4:] != "html":
|
||||||
dir = "web/html/" + dir
|
dir = "web/html/" + dir
|
||||||
|
|
||||||
for f in os.listdir(dir):
|
if os.path.exists(dir):
|
||||||
#if not f.startswith('favicon_ico_gz'):
|
for f in os.listdir(dir):
|
||||||
os.remove(os.path.join(dir, f))
|
os.remove(os.path.join(dir, f))
|
||||||
|
|
||||||
# grab all files with following extensions
|
# grab all files with following extensions
|
||||||
if os.getcwd()[-4:] != "html":
|
if os.getcwd()[-4:] != "html":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue