From de6029aa13a0b2e2690ba671796516e6e87a9dd3 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 19 Jan 2020 19:34:20 +0100 Subject: [PATCH] default MultiMystery to the python version that launched it. --- MultiMystery.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MultiMystery.py b/MultiMystery.py index 4e5d8379..6ab761ed 100644 --- a/MultiMystery.py +++ b/MultiMystery.py @@ -42,7 +42,8 @@ player_files_folder:str = "Players" #Version of python to use for Bonta Multiworld. Probably leave this as is, if you don't know what this does. #can be tagged for bitness, for example "3.8-32" would be latest installed 3.8 on 32 bits -py_version:str = "3.7" +#special case: None -> use the python which was used to launch this file. +py_version:str = None ####end of config#### import os @@ -56,7 +57,8 @@ def feedback(text:str): if __name__ == "__main__": try: - + if not py_version: + py_version = f"{sys.version_info.major}.{sys.version_info.minor}" import ModuleUpdate ModuleUpdate.update()