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 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 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: