From 0748969f05f5065a9dd8f85efd82981b8084cf0d Mon Sep 17 00:00:00 2001 From: Scstechr Date: Fri, 9 Aug 2019 11:13:47 -0400 Subject: [PATCH] imporved version info. remove unnecessary print() in main() of gch --- gch.py | 1 - src/parse.py | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gch.py b/gch.py index 1b5d868..f12db90 100755 --- a/gch.py +++ b/gch.py @@ -53,7 +53,6 @@ def main(): gitpath = path.abspath(gitpath) filepath = path.abspath(filepath) os.chdir(gitpath) - print(os.getcwd()) gitfolder = path.join(gitpath, '.git') if not path.exists(gitfolder): diff --git a/src/parse.py b/src/parse.py index f0f52f3..432bdf2 100644 --- a/src/parse.py +++ b/src/parse.py @@ -1,11 +1,14 @@ from os import path from platform import platform import sys +from datetime import datetime from .arg import ReturnArgdict import subprocess as sp -VERSION = '1.14' +VERSION = '1.16' -PYTHON_VERSION = sys.version.split('\n')[0] +date = str(datetime.utcnow())[:-7] + ' UTC' + +PYTHON_VERSION = sys.version.split(' ')[0] PLATFM_VERSION = platform() string = sp.run(['PyInstaller','--version'],capture_output=True).stdout.strip() @@ -25,7 +28,7 @@ def Error(): sys.exit(1) def Version(string): - print(f"\033[1m{string} v{VERSION}\033[0m") + print(f"\033[1m{string} v{VERSION} ({date})\033[0m") print(f"\033[1mBUILD INFO: \033[0m") # Python version version = PYTHON_VERSION