Python 如何实现 单实例

出处:https://stackoverflow.com/questions/380870/make-sure-only-a-single-instance-of-a-program-is-running

from tendo import singleton
me = singleton.SingleInstance() # will sys.exit(-1) if other instance is running

https://pypi.org/project/tendo/#files

posted on 2019-08-03 13:07  liujx2019  阅读(204)  评论(0编辑  收藏  举报

导航