From c6b3147ac079c1e193531bcbffd4da6c4f107957 Mon Sep 17 00:00:00 2001 From: root <1561515308@qq.com> Date: Sat, 30 Mar 2024 10:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmpt/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmpt/util.py b/pmpt/util.py index 86a7fe1..edf353f 100644 --- a/pmpt/util.py +++ b/pmpt/util.py @@ -3,13 +3,13 @@ from subprocess import Popen,PIPE import sys import pathlib import dill +import time from platformdirs import PlatformDirs dirs = PlatformDirs("PMPT", "MoYan") IndexList = [] def getVer(baseVar): - s = os.popen('git rev-parse HEAD') - baseVar = baseVar + '_' + s.read()[:6] + baseVar = baseVar + '.' + str(int(time.time()))[:6] return baseVar __version__ = getVer('1.0.0') def init():