stten7 fix

This commit is contained in:
stten7 2023-09-05 16:39:01 +02:00
parent 8c24b3a783
commit 6fee7d1714

View File

@ -41,6 +41,10 @@ class Os_Label_Printer(Component):
else: else:
label_folder = standard_label_folder label_folder = standard_label_folder
label_path = label_folder+str(template) label_path = label_folder+str(template)
if os.path.exists(label_path):
pass
else:
label_path = standard_label_folder+str(template)
# LOAD LABEL TEMPLATE # LOAD LABEL TEMPLATE
with open(label_path, "r", errors="surrogateescape", encoding='iso-8859-1') as f: with open(label_path, "r", errors="surrogateescape", encoding='iso-8859-1') as f:
label_file_contents = f.read() label_file_contents = f.read()