diff --git a/UniversalModloader.py b/UniversalModloader.py index b1899cc..280c142 100644 --- a/UniversalModloader.py +++ b/UniversalModloader.py @@ -30,6 +30,7 @@ originalAppPath = False tmpAppPath = False modPath = False originalModPath = False +api = True #Exception Handler def openFileWithStandardApp(path): @@ -276,6 +277,7 @@ def walklevel(some_dir, level=1): del dirs[:] def title(string): + if api == True: return if os.name == "nt": os.system("title " +string) else: @@ -409,13 +411,17 @@ def setupVariables(): modPath = os.path.join(appPath + " - umlMods") originalModPath = modPath -#Init -title("Fier's Universal Modloader - " +uml.versionString) -setupVariables() -title("Fier's Universal Modloader - " +uml.versionString+ " : " +appName) +def init(): + api = False + title("Fier's Universal Modloader - " +uml.versionString) + setupVariables() + title("Fier's Universal Modloader - " +uml.versionString+ " : " +appName) -cleanUp() -checkUp() + cleanUp() + checkUp() -while True: - mainMenu() \ No newline at end of file + while True: + mainMenu() + +if __name__ == "__main__": + init() \ No newline at end of file