12 lines
468 B
Python
12 lines
468 B
Python
import os
|
|
import tempfile
|
|
from pathlib import Path
|
|
|
|
_test_config = Path(tempfile.mkdtemp(prefix="mkvtool-tests-"))
|
|
os.environ["MKVTOOL_CONFIG_DIR"] = str(_test_config)
|
|
os.environ["MKVTOOL_FILMS_DIR"] = str(_test_config / "films")
|
|
os.environ["MKVTOOL_RADARR_FILMS_DIR"] = str(_test_config / "radarr")
|
|
os.environ["MKVTOOL_DOWNLOADS_DIR"] = str(_test_config / "downloads")
|
|
os.environ["MKVTOOL_SIMULATE_CONVERSION"] = "true"
|
|
os.environ["MKVTOOL_WORKER_INTERVAL"] = "0.05"
|