fix: create scratch dir and scope catalog ratio

This commit is contained in:
Abdessamad Derraz committed 2026-08-08 11:05:23 +02:00
1 parent b26a874966
commit eb2c064518
4 files changed
+62 -13

No files matched your search

+3
View File
@@ -1672,6 +1672,9 @@ def _normalize_zip_for_pack(
"""
import tempfile as _tmp
# tmp/ is gitignored, so a fresh clone does not carry it. WSL keeps /tmp
# on a 4 GB tmpfs that MAME sets overflow, hence the repo-local scratch.
os.makedirs("tmp", exist_ok=True)
tmp_fd, tmp_path = _tmp.mkstemp(suffix=".zip", dir="tmp")
os.close(tmp_fd)
try: