mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05:00
refactor: deduplicate yaml import pattern via require_yaml()
This commit is contained in:
@@ -19,14 +19,11 @@ from common import (
|
||||
load_emulator_profiles,
|
||||
load_platform_config,
|
||||
load_target_config,
|
||||
require_yaml,
|
||||
)
|
||||
from truth import generate_platform_truth
|
||||
|
||||
try:
|
||||
import yaml
|
||||
except ImportError:
|
||||
print("Error: PyYAML required (pip install pyyaml)", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
yaml = require_yaml()
|
||||
|
||||
DEFAULT_OUTPUT_DIR = "dist/truth"
|
||||
DEFAULT_PLATFORMS_DIR = "platforms"
|
||||
|
||||
Reference in New Issue
Block a user