Nicer error message when slangc not found

This commit is contained in:
Kovid Goyal
2026-06-30 09:32:20 +05:30
parent 4b5e3c06fb
commit 5e57838a92

View File

@@ -426,6 +426,8 @@ def compile_builtin_shaders(build_dir: str, dest_dir: str, parallel_run: Paralle
def main() -> None:
if not shutil.which(slangc[0]):
raise SystemExit(f'The shader slang compiler ({slangc[0]}) not in PATH: {os.environ.get("PATH")}')
setup = runpy.run_path('setup.py')
Command = setup['Command']
parallel_run = setup['parallel_run']