From 1a2ff603a8fc0d486f87bbe7acd49446f33f2d84 Mon Sep 17 00:00:00 2001 From: Akira Takahashi Date: Tue, 8 Jul 2025 15:36:49 +0900 Subject: [PATCH] =?UTF-8?q?GLOBAL=5FQUALIFY=5FLIST=E3=81=AB=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92=E6=9B=B8=E3=81=91=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 7c2dc9d..4e326ee 100755 --- a/run.py +++ b/run.py @@ -563,7 +563,12 @@ def main(): sidebar_index = None with open('{}/GLOBAL_QUALIFY_LIST.txt'.format(settings.INPUT_DIR), encoding='utf-8') as f: - global_qualify_list = '\n'.join([line.strip() for line in f]) + ls = [] + for line in f: + stripped_line = line.strip() + if stripped_line and not stripped_line.startswith('#'): + ls.append(stripped_line) + global_qualify_list = '\n'.join(ls) filename = '{}/GLOBAL_DEFINED_WORDS.json'.format(settings.INPUT_DIR) if os.path.isfile(filename):