summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(