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:
parent
606f27185c
commit
057ac98843
11 changed files with 83 additions and 69 deletions
|
|
@ -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() +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue