Python module to ensure only a single instance of a program is running.
To check for other instances of a script running and stop all other instances and continue on:
import solo
solo.chk_and_stopall(__file__)To check for other instances of a script are running and stop self (sys.exit(-1))
import solo
solo.chk_and_stopself(__file__)import psutil
Uses psutil which gives cross platform magic