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).
This commit is contained in:
parent
21bdcf3e17
commit
edbf4f2a0e
7 changed files with 23 additions and 25 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import dcc.config
|
||||
import dcc.doom_base
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
|
||||
class Record(dcc.doom_base.WadMap):
|
||||
def take_action(self, parsed_args):
|
||||
subprocess.run(
|
||||
os.execv(self.dsda,
|
||||
[self.dsda] + self.dsda_preamble() +
|
||||
["-record", self.demo_out_path()]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue