mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[core] set command line to status file before launching the command
This commit is contained in:
parent
5c1dd71a0f
commit
9d99cba772
1 changed files with 2 additions and 1 deletions
|
@ -326,12 +326,13 @@ class CommandLineNode(Node):
|
|||
try:
|
||||
with open(chunk.logFile(), 'w') as logF:
|
||||
cmd = self.buildCommandLine(chunk)
|
||||
chunk.status.commandLine = cmd
|
||||
chunk.saveStatusFile()
|
||||
print(' - commandLine:', cmd)
|
||||
print(' - logFile:', chunk.logFile())
|
||||
chunk.subprocess = psutil.Popen(cmd, stdout=logF, stderr=logF, shell=True)
|
||||
|
||||
# store process static info into the status file
|
||||
chunk.status.commandLine = cmd
|
||||
# chunk.status.env = node.proc.environ()
|
||||
# chunk.status.createTime = node.proc.create_time()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue