代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。