1# SPDX-License-Identifier: GPL-2.0 2 3import sys 4from pathlib import Path 5 6KSFT_DIR = (Path(__file__).parent / "../../..").resolve() 7KSRC = (Path(__file__).parent / "../../../../../..").resolve() 8 9KSFT_MAIN_NAME = Path(sys.argv[0]).with_suffix("").name 10