srctools.cmdseq
Reads and writes Hammer’s compilation configs.
These set the arguments to the compile tools.
- class srctools.cmdseq.SpecialCommand
Bases:
EnumSpecial commands to run instead of the exe.
- CHANGE_DIR = 256
- COPY_FILE = 257
- DELETE_FILE = 258
- RENAME_FILE = 259
- class srctools.cmdseq.Command(
- exe: str | SpecialCommand,
- args: str,
- *,
- enabled: bool = True,
- ensure_file: str | None = None,
- use_proc_win: bool = True,
- no_wait: bool = False,
A command to run.
- exe: str | SpecialCommand
Either the path to the executable, or one of several special commands.
- ensure_file: str | None
If non-None, the command should fail if this file doesn’t exist after it runs.
- use_proc_win: bool
Determines if the command should be executed directly, or captured in the ‘run process’ window. Obsolete for Hammer versions with
hammer_run_map_launcher.exe.