We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c965464 commit ee96e3eCopy full SHA for ee96e3e
unstructured_inference/config.py
@@ -14,7 +14,7 @@
14
15
16
@lru_cache(maxsize=1)
17
-def get_tempdir(dir: str) -> str:
+def _get_tempdir(dir: str) -> str:
18
tempdir = Path(dir) / f"tmp/{os.getpgid(0)}"
19
return str(tempdir)
20
@@ -155,7 +155,7 @@ def INFERENCE_GLOBAL_WORKING_PROCESS_DIR(self) -> str:
155
"""Path to Unstructured cache tempdir. Overrides TMPDIR, TEMP and TMP.
156
Defaults to '{INFERENCE_GLOBAL_WORKING_DIR}/tmp/{os.getpgid(0)}'.
157
"""
158
- default_tmpdir = get_tempdir(dir=self.INFERENCE_GLOBAL_WORKING_DIR)
+ default_tmpdir = _get_tempdir(dir=self.INFERENCE_GLOBAL_WORKING_DIR)
159
tmpdir = self._get_string("INFERENCE_GLOBAL_WORKING_PROCESS_DIR", default_tmpdir)
160
if tmpdir == "":
161
tmpdir = default_tmpdir
0 commit comments