I'm writing a program that is supposed to synchronize several different parts, including hardware. This is done by using a python script that communicates with other programs.
I've found out that something I need for synchronization is for the main script to be able to tell if another particular program is running, or if it stops.
I imagine it would look someting like:
#checking if a program runs
if is_running(program):
statements
#Waiting for a program to stop
while is_running(program):
pass
Does anyone know? I'm using Python 2.7 on Windows 7.