srctools.run

Code for running VBSP and VRAD.

srctools.run.run_compiler(
name: str, args: ~typing.List[str], logger: ~logging.Logger = <LoggerAdapter srctools.<compiler> (WARNING)>, change_name: bool = True,
) int

Execute the original vbsp, vvis or vrad.

The provided logger will be given the output from the compiler. The process exit code is returned.

srctools.run.get_compiler_name(program: str) str

Get the real executable name for VBSP or VRAD.