update
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compatibility entry point for the maintained Pre15 G3 fixture helper."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
|
||||
HELPER = Path(__file__).resolve().parent / "pre15/fixtures/g3.py"
|
||||
|
||||
|
||||
def main() -> None:
|
||||
spec = importlib.util.spec_from_file_location("pre15_g3", HELPER)
|
||||
if spec is None or spec.loader is None:
|
||||
raise RuntimeError(f"cannot load {HELPER}")
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
module.main(sys.argv[1:])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user