diff options
author | Keuin <[email protected]> | 2023-06-03 15:28:27 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-06-03 15:28:27 +0800 |
commit | 7e43c9320a7eb15a60bee04ab41df053cd8f1dc7 (patch) | |
tree | 30445c620afb597c5743ccd2360e06d730a73f7d | |
parent | ce55c5a37169fa2b3e17b53db8bcfe040aaa5cf0 (diff) |
Bugfix: shitting outside workdir
-rw-r--r-- | texgen.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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( |