corgi.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:corgi 作者: el-ethan 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号