MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _configure_runtime_tempdir

Function _configure_runtime_tempdir

script/echomimic_api.py:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def _configure_runtime_tempdir() -> None:
28 project_root = Path(__file__).resolve().parent.parent
29 runtime_tmp = Path(
30 os.getenv("PAPER2ANY_RUNTIME_TMPDIR", str(project_root / "outputs" / "system" / "tmp"))
31 ).expanduser().resolve()
32 runtime_tmp.mkdir(parents=True, exist_ok=True)
33 for key in ("TMPDIR", "TEMP", "TMP"):
34 os.environ[key] = str(runtime_tmp)
35 tempfile.tempdir = str(runtime_tmp)
36
37
38_configure_runtime_tempdir()

Callers 1

echomimic_api.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected