修复版本号
This commit is contained in:
parent
4da552bcff
commit
c6b3147ac0
|
@ -3,13 +3,13 @@ from subprocess import Popen,PIPE
|
||||||
import sys
|
import sys
|
||||||
import pathlib
|
import pathlib
|
||||||
import dill
|
import dill
|
||||||
|
import time
|
||||||
from platformdirs import PlatformDirs
|
from platformdirs import PlatformDirs
|
||||||
|
|
||||||
dirs = PlatformDirs("PMPT", "MoYan")
|
dirs = PlatformDirs("PMPT", "MoYan")
|
||||||
IndexList = []
|
IndexList = []
|
||||||
def getVer(baseVar):
|
def getVer(baseVar):
|
||||||
s = os.popen('git rev-parse HEAD')
|
baseVar = baseVar + '.' + str(int(time.time()))[:6]
|
||||||
baseVar = baseVar + '_' + s.read()[:6]
|
|
||||||
return baseVar
|
return baseVar
|
||||||
__version__ = getVer('1.0.0')
|
__version__ = getVer('1.0.0')
|
||||||
def init():
|
def init():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user