fix: refuse a --bios-dir that does not exist

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 08:39:27 +02:00
1 parent 4240c98359
commit b23f5b04ad
7 files changed
+57 -1

No files matched your search

+2
View File
@@ -35,6 +35,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
from common import (
require_directory,
load_database,
load_emulator_profiles,
load_platform_config,
@@ -471,6 +472,7 @@ def main() -> int:
help="recipe snapshot file, or a directory of them",
)
args = parser.parse_args()
require_directory(args.bios_dir)
_resolve_modes(args)
db = load_database(args.db)