From 2a4f89dab03044185694a0b7535e85638eb626c0 Mon Sep 17 00:00:00 2001 From: yolain Date: Mon, 4 Nov 2024 11:25:44 +0800 Subject: [PATCH] Fix files_list not found --- py/easyNodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/py/easyNodes.py b/py/easyNodes.py index 0d3f12d..136b429 100644 --- a/py/easyNodes.py +++ b/py/easyNodes.py @@ -7347,11 +7347,10 @@ class pipeXYPlotAdvanced: @classmethod def INPUT_TYPES(s): + files_list = [] if s.font_dir and os.path.exists(s.font_dir): font_dir = s.font_dir - files_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")] - else: - flies_list = [] + files_list = files_list + [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")] if s.user_font_dir and os.path.exists(s.user_font_dir): files_list = files_list + [f for f in os.listdir(s.user_font_dir) if os.path.isfile(os.path.join(s.user_font_dir, f)) and f.lower().endswith(".ttf")]