Major refactor to make handling name/path manipulation easier.
Most of this is now in doom_base.py, which stores wad/map/name, exposes them as properties, and also takes care of most common tasks needed for building command lines and such.
This commit is contained in:
parent
85d3686f1c
commit
2438995093
11 changed files with 113 additions and 100 deletions
|
@ -4,6 +4,5 @@ import subprocess
|
|||
|
||||
class Record(dcc.doom_base.WadMap):
|
||||
def take_action(self, parsed_args):
|
||||
subprocess.run([dcc.config.DSDA] +
|
||||
dcc.config.DsdaPreamble(parsed_args.wad, parsed_args.map) +
|
||||
["-record", dcc.config.DemoOutPath(parsed_args.wad, parsed_args.map, parsed_args.name)])
|
||||
subprocess.run([dcc.config.DSDA] + self.dsda_preamble() +
|
||||
["-record", self.demo_out_path()])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue