0

How can one make the python script wait until some process launched with os.system() call is completed ? For example a code like

import subprocess
subprocess.call('gnome-chess')

With this i have to wait until gnome-chess is not closed

What i want is just wait until gnome-chess is not stated

wjandrea
  • 28,235
  • 9
  • 60
  • 81
  • I assume you want to start `gnome-chess` in the **background**; this question already has an answer [here](https://stackoverflow.com/a/1196122/4309792). – Ionut Ticus Apr 09 '20 at 13:00

1 Answers1

0

You can use subprocess.Popen for that.

See here for docs.

Vicrobot
  • 3,795
  • 1
  • 17
  • 31