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

View File

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