From e52ee4dcd995e7be4aa43c61ba766e1553416837 Mon Sep 17 00:00:00 2001 From: Jose Stovall Date: Tue, 8 Nov 2022 10:20:16 -0600 Subject: [PATCH] Fix relative dir not being made absolute --- src/pixlet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixlet.py b/src/pixlet.py index e5873b1..41ca251 100644 --- a/src/pixlet.py +++ b/src/pixlet.py @@ -21,8 +21,8 @@ def update_template(template_path: str, out_path: str, replacers: dict): replacers (dict): a Dict[str,str] whose keys are in the template, and whose values will replace their keys in the template """ - if not os.path.exists("../out"): - os.mkdir("../out") + if not os.path.exists(rel_to_abspath("../out")): + os.mkdir(rel_to_abspath("../out")) with open(template_path, "r", encoding="utf-8") as file_handle: data = file_handle.read() for key in replacers: