From 24df9bc2fc3bb2bd534d1a65c158b9e033a230f6 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 7 Jan 2019 00:11:06 +0100 Subject: [PATCH] Moved version information into class --- UniversalModloader.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/UniversalModloader.py b/UniversalModloader.py index eaff89e..a40b8fe 100644 --- a/UniversalModloader.py +++ b/UniversalModloader.py @@ -9,11 +9,12 @@ def preloadExceptionHandler(exc_type, exc_value, tb): #sys.excepthook = preloadExceptionHandler #Imports and variables -umlVer = 0 -umlSubVer = 7 -umlFeatureSet = 4 -umlBranch = "beta (dev)" -umlVerStr = str(umlVer) + "." + str(umlSubVer) + "." +str(umlFeatureSet)+ " " + umlBranch +class uml: + version = 0 + versionSub = 7 + versionSub2 = 4 + versionBranch = "beta (dev)" + versionString = str(version) + "." + str(versionSub) + "." +str(versionSub2)+ " " + versionBranch import ctypes import os @@ -330,7 +331,7 @@ def requestAppPath(): def console(): clear() print("UniversalModloader Console") - print("Version: " +umlVerStr) + print("Version: " +uml.versionString) while True: print("") @@ -393,9 +394,9 @@ def setupVariables(): originalModPath = modPath #Init -title("Fier's Universal Modloader - " +umlVerStr) +title("Fier's Universal Modloader - " +uml.versionString) setupVariables() -title("Fier's Universal Modloader - " +umlVerStr+ " : " +appName) +title("Fier's Universal Modloader - " +uml.versionString+ " : " +appName) cleanUp() checkUp()