79149395

Date: 2024-11-01 20:56:50
Score: 0.5
Natty:
Report link

Here's a version which generates a tmp dir, and atexit runs cleanup

import atexit
import tempfile

temp_dir = tempfile.TemporaryDirectory()
os.environ["PROMETHEUS_MULTIPROC_DIR"] = temp_dir.name
atexit.register(temp_dir.cleanup)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jm-nab