Paul's Programming Notes     Archive     Feed     Github

Check If Script Is already Running - Python

http://pythonhosted.org/tendo/


import tendo

# If is there another instance already running:
# display the message “Another instance is already running, quitting.”, and return -1 error code.
me = SingleInstance()