2
$\begingroup$

I have run a blender instance in the background using subprocess.Popen. Now I want one panel to get visible only if there is a blender instance running in the background.

$\endgroup$
2
  • 3
    $\begingroup$ I'm voting to close this question as off-topic because this is a general Python question, not specific to Blender. $\endgroup$ Sep 20, 2017 at 14:52
  • $\begingroup$ True, when recommending to ask here I wasn't aware this was about subprocesses. $\endgroup$
    – ideasman42
    Sep 20, 2017 at 17:54

1 Answer 1

1
$\begingroup$

This is no different from regular subprocess use: https://docs.python.org/3.6/library/subprocess.html

Use the return value of Popen and check it will poll()

See: https://stackoverflow.com/questions/12057794 - though in your case you won't want to wait until poll finished.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .