summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-06-03 15:28:27 +0800
committerKeuin <[email protected]>2023-06-03 15:28:27 +0800
commit7e43c9320a7eb15a60bee04ab41df053cd8f1dc7 (patch)
tree30445c620afb597c5743ccd2360e06d730a73f7d
parentce55c5a37169fa2b3e17b53db8bcfe040aaa5cf0 (diff)
Bugfix: shitting outside workdir
-rw-r--r--texgen.py2
1 files changed, 1 insertions, 1 deletions
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(