Making a python script only be able to run once at a time
Posted
by Richard
on Stack Overflow
See other posts from Stack Overflow
or by Richard
Published on 2010-06-02T16:10:25Z
Indexed on
2010/06/02
16:44 UTC
Read the original article
Hit count: 130
python
I am looking to make a python script be unique in the sense that it can only run once at a time. For example if I run the script and open another session of the same script a second time and the first session is still running, then the second session will just exit and do nothing. Anyone knows how I could implement this?
© Stack Overflow or respective owner