Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
import __main__, os
|
||||
|
||||
def isOnlyInstance():
|
||||
# Determine if there are more than the current instance of the application
|
||||
# running at the current time.
|
||||
return os.system("(( $(ps -ef | grep python | grep '[" +
|
||||
__main__.__file__[0] + "]" + __main__.__file__[1:] +
|
||||
"' | wc -l) > 1 ))") != 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue