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
|
|
@ -17,7 +17,7 @@ class DSDA(dcc.doom_base.WadMap):
|
|||
dip = self.demo_in_path()
|
||||
dtp = self.dsda_text_path()
|
||||
if not dtp.exists():
|
||||
command = [dcc.config.DSDA]
|
||||
command = [self.dsda]
|
||||
if shutil.which("xvfb-run") is not None:
|
||||
command = ["xvfb-run"] + command
|
||||
# TODO: negative tics should seek from the end, but this doesn't seem to work.
|
||||
|
|
@ -51,6 +51,6 @@ class DSDA(dcc.doom_base.WadMap):
|
|||
|
||||
# TODO: demo names other than uv-max.
|
||||
fnf = fh1 + "-" + fh2 + ".zip"
|
||||
with zipfile.ZipFile(dcc.config.DEMOS.joinpath(self.wad).joinpath(fnf), mode="w") as zf:
|
||||
with zipfile.ZipFile(self.demos.joinpath(self.wad).joinpath(fnf), mode="w") as zf:
|
||||
zf.write(dip, arcname=dip.name)
|
||||
zf.write(dtp, arcname=dtp.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue