From 7e43c9320a7eb15a60bee04ab41df053cd8f1dc7 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 3 Jun 2023 15:28:27 +0800 Subject: Bugfix: shitting outside workdir --- texgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texgen.py b/texgen.py index f90d917..61d90f7 100644 --- a/texgen.py +++ b/texgen.py @@ -39,7 +39,7 @@ class TexGenerator: return cache_file_path with temp_dir(os.path.join(self._temp_path, os.urandom(24).hex())) as workdir: job_name = 'texput' - tex_file_path = os.path.join(self._temp_path, f'{job_name}.tex') + tex_file_path = os.path.join(workdir, f'{job_name}.tex') with open(tex_file_path, 'w', encoding='utf-8') as f: f.write(tex_source) with subprocess.Popen( -- cgit v1.2.3