Read values out of a config file instead of hardcoding them. Further streamline common tasks in a new base config class.

This commit is contained in:
yrriban 2025-05-17 11:50:59 -04:00
parent 606f27185c
commit 057ac98843
11 changed files with 83 additions and 69 deletions

View file

@ -14,7 +14,7 @@ class Fabricate(dcc.doom_base.WadMap):
def take_action(self, parsed_args):
with tempfile.TemporaryDirectory() as td:
with contextlib.chdir(td):
command = [dcc.config.DSDA]
command = [self.dsda]
if not parsed_args.fg and shutil.which("xvfb-run") is not None:
command = ["xvfb-run"] + command
subprocess.run(command + self.dsda_preamble() +