doomcc/dcc/record.py
yrriban edbf4f2a0e Use os.execv instead of subprocess.run when no further action is taken.
This prevents the underlying file from being marked busy while a
long-running action is happening (e.g. eureka is open).
2025-12-24 18:09:49 -05:00

17 lines
451 B
Python

import dcc.config
import dcc.doom_base
import os
class Record(dcc.doom_base.WadMap):
def take_action(self, parsed_args):
os.execv(self.dsda,
[self.dsda] + self.dsda_preamble() +
["-record", self.demo_out_path()]
)
def options_dict(self):
opt_dict = super().options_dict()
for k, v in self._config.get("record_options", {}).items():
opt_dict[k] = v
return opt_dict