fileExplorer.py 文件源码

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

项目:PyBER 作者: aff3ct 项目源码 文件源码
def openFileOrDir(self, *args):
        paths = [ self.model().filePath(index) for index in args ]
        if len(paths):
            if sys.platform == "linux" or sys.platform == "linux2":
                subprocess.call(["xdg-open", paths[0]])
            elif sys.platform == "darwin":
                subprocess.call(["open", paths[0]])
            else:
                os.startfile(paths[0])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号