From e04badb2342616bbbe2cb2d043f2f8b951c1ccbc Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 4 Dec 2023 20:46:24 +0300 Subject: [PATCH] Add IGNORED in GUI build script --- build_gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_gui.py b/build_gui.py index 1e43ffa..80da470 100644 --- a/build_gui.py +++ b/build_gui.py @@ -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: