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,7 +1,6 @@
|
|||
import dcc.doom_base
|
||||
import pathlib
|
||||
import os
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
|
||||
|
|
@ -42,7 +41,7 @@ class RIB(dcc.doom_base.WadMap):
|
|||
+ f"and map {parsed_args.map} (tried to look in {demodir})"
|
||||
)
|
||||
|
||||
subprocess.run(
|
||||
os.execv(self.dsda,
|
||||
[self.dsda] + self.dsda_preamble(warp=False)
|
||||
+ ["-playdemo", demo]
|
||||
+ ["-skiptic", str(-35 * parsed_args.secs_before)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue