def running_emacs_count(self):
"""Count how many instances of Emacs are currently open"""
try:
import psutil
return [psutil.Process(p).name() for p in psutil.pids()].count('emacs')
except ImportError:
Logger.warning('Cannot determine how many instances of Emacs are running. This may cause sync issues')
return 0
评论列表
文章目录