mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-21 10:37:18 +02:00
[nodes] CameraInit: remove subprocess wait (communicate is enough)
This commit is contained in:
parent
9775924df0
commit
69a1f157ac
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class CameraInit(desc.CommandLineNode):
|
||||||
# logging.debug(' - commandLine:', cmd)
|
# logging.debug(' - commandLine:', cmd)
|
||||||
proc = psutil.Popen(cmd, stdout=None, stderr=None, shell=True)
|
proc = psutil.Popen(cmd, stdout=None, stderr=None, shell=True)
|
||||||
stdout, stderr = proc.communicate()
|
stdout, stderr = proc.communicate()
|
||||||
proc.wait()
|
# proc.wait()
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise RuntimeError('CameraInit failed with error code {}.\nCommand was: "{}".\n'.format(
|
raise RuntimeError('CameraInit failed with error code {}.\nCommand was: "{}".\n'.format(
|
||||||
proc.returncode, cmd)
|
proc.returncode, cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue