修复版本号

This commit is contained in:
root 2024-03-30 10:11:02 +08:00
parent 61860b0b71
commit 4da552bcff

View File

@ -9,7 +9,7 @@ dirs = PlatformDirs("PMPT", "MoYan")
IndexList = [] IndexList = []
def getVer(baseVar): def getVer(baseVar):
s = os.popen('git rev-parse HEAD') s = os.popen('git rev-parse HEAD')
baseVar = baseVar + '-' + s.read()[:6] baseVar = baseVar + '_' + s.read()[:6]
return baseVar return baseVar
__version__ = getVer('1.0.0') __version__ = getVer('1.0.0')
def init(): def init():