Add IGNORED in GUI build script

This commit is contained in:
Alexander Popov 2023-12-04 20:46:24 +03:00
parent e9b2653ad0
commit e04badb234
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ from bs4 import BeautifulSoup, Tag
from jsmin import jsmin
from csscompressor import compress
IGNORED = 'gui//webui.js'
if __name__ == '__main__':
# html input param
html = sys.argv[1]
@ -49,7 +51,7 @@ if __name__ == '__main__':
with open('.temp.js', 'w') as outfileScript:
for fname in scriptsSrc:
# add space every script
if fname != 'gui//webui.js':
if fname not in IGNORED:
outfileScript.write('\n')
with open(fname) as infile:
for line in infile: