From eb17b381a6af54d42b31cd080316ee9a4a159f29 Mon Sep 17 00:00:00 2001 From: lilly Date: Wed, 5 Apr 2023 21:24:14 +0900 Subject: [PATCH] Update wildcards.py is_card_Load --- wildcards.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wildcards.py b/wildcards.py index 0c8af0f..e158504 100644 --- a/wildcards.py +++ b/wildcards.py @@ -25,6 +25,7 @@ class wildcards: recard = re.compile(r"(__)(.*?)(__)") # 카드 목록 + is_card_Load = False cards = {} seperator=", " loop_max=50 @@ -152,13 +153,15 @@ class wildcards: wildcards.cards=cards print(f"[cyan]cards file count : [/cyan]", len(wildcards.cards)) #print(f"cards : {cards.keys()}") + wildcards.is_card_Load=True # 실행기 - def run(text): + def run(text,load=False): if text is None or type(text) is not str: print("[red]text is not str : [/red]",text) return None - wildcards.card_load() + if not wildcards.is_card_Load or load: + wildcards.card_load() #print(f"text : {text}") result=wildcards.card_loop(text)