From 68831ea75915d0ea679f1791c73698b281f8d2ac Mon Sep 17 00:00:00 2001 From: Jose Stovall Date: Tue, 8 Nov 2022 10:12:28 -0600 Subject: [PATCH 1/3] Update gitignore, requirements.txt --- requirements.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e1b34df --- /dev/null +++ b/requirements.txt @@ -0,0 +1,29 @@ +async-generator==1.10 +attrs==22.1.0 +beautifulsoup4==4.11.1 +certifi==2022.9.24 +cffi==1.15.1 +charset-normalizer==2.1.1 +comtypes==1.1.14 +exceptiongroup==1.0.1 +h11==0.14.0 +idna==3.4 +outcome==1.2.0 +Pillow==9.3.0 +pycparser==2.21 +PySocks==1.7.1 +python-dateutil==2.8.2 +pywin32==305 +pywinauto==0.6.8 +requests==2.28.1 +selenium==4.6.0 +six==1.16.0 +sniffio==1.3.0 +sortedcontainers==2.4.0 +soupsieve==2.3.2.post1 +trio==0.22.0 +trio-websocket==0.9.2 +urllib3==1.26.12 +uuid==1.30 +webptools==0.0.9 +wsproto==1.2.0 From 3e572dfef74909c63ba0cc06cf64178eaf5f4ab1 Mon Sep 17 00:00:00 2001 From: Jose Stovall Date: Tue, 8 Nov 2022 10:12:45 -0600 Subject: [PATCH 2/3] Update .gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e71f7ec..294216c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,7 @@ templates/rendered* src/main.build/ src/main.dist/ src/main.onefile-build/ -src/main.exe \ No newline at end of file +src/main.exe +Lib/ +Scripts/ +pyvenv.cfg From e52ee4dcd995e7be4aa43c61ba766e1553416837 Mon Sep 17 00:00:00 2001 From: Jose Stovall Date: Tue, 8 Nov 2022 10:20:16 -0600 Subject: [PATCH 3/3] 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: