1 Star 0 Fork 0

King/kflash_gui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
parameters.py 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
neucrack 提交于 2019-07-19 19:04 . add board m5stickv
import os, sys
appName = "kflash_gui"
author = "Neucrack"
strDataDirName = "kflash_gui_data"
strDataAssetsDirName = "kflash_gui_data/assets"
appIcon = "assets/logo.png"
appLogo = "assets/logo.png"
appLogo2 = "assets/logo2.png"
translationPath = "assets/translation"
configFileName = "kflash_gui.conf"
configFilePath = ""
if sys.platform.startswith('linux') or sys.platform.startswith('darwin') or sys.platform.startswith('freebsd'):
configFileDir = os.path.join(os.getenv("HOME"), ".config/kflash_gui")
try:
configFilePath = os.path.join(configFileDir, configFileName)
if not os.path.exists(configFileDir):
os.makedirs(configFileDir)
except:
pass
else:
configFilePath = os.path.join(os.getcwd(), configFileName)
SipeedMaixDock = "Sipeed Maix Dock"
SipeedMaixBit = "Sipeed Maix Bit"
SipeedMaixBitMic = "Sipeed Maix Bit ( with Mic )"
SipeedMaixGo = "Sipeed Maix Go ( open-ec & new CMSIS-DAP )"
SipeedMaixGoD = "Sipeed Maix Go ( Old CMSIS-DAP )"
SipeedMaixduino = "Sipeed Maixduino"
KendryteKd233 = "Kendryte KD233"
kendryteTrainer = "kendryte Trainer"
M5StickV = "M5StickV"
Auto = "Auto"
# get data path
pathDirList = sys.argv[0].replace("\\", "/").split("/")
pathDirList.pop()
dataPath = os.path.abspath("/".join(str(i) for i in pathDirList))
if not os.path.exists(dataPath + "/" + strDataDirName):
pathDirList.pop()
dataPath = os.path.abspath("/".join(str(i) for i in pathDirList))
dataPath = (dataPath + "/" + strDataDirName).replace("\\", "/")
translationPathAbs = dataPath+"/"+translationPath
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qiujianqin/kflash_gui.git
git@gitee.com:qiujianqin/kflash_gui.git
qiujianqin
kflash_gui
kflash_gui
master

搜索帮助