安装bplist
pip3 install bplist
代码部分
包含获取系统文件路径 指定文件名
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
from biplist import *
class pliatManager(object):
"""docstring for ClassName"""
# def __init__(self, arg):
# super(ClassName, self).__init__()
# self.arg = arg
# plist 路径
def filePaht(self):
# 获取系统桌面路径
# 系统路径
osPath = os.path.expanduser('~')
# 桌面路径
subPath = "Desktop"
pathstr = os.path.join(osPath,subPath)
return pathstr
# plist 名字
def plistName(self):
checkfile ='Info.plist'
return checkfile
# 切换目录 目录
def chang