default MultiMystery to the python version that launched it.

This commit is contained in:
Fabian Dill 2020-01-19 19:34:20 +01:00
parent 2f575d230c
commit de6029aa13
1 changed files with 4 additions and 2 deletions

View File

@ -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. #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 #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#### ####end of config####
import os import os
@ -56,7 +57,8 @@ def feedback(text:str):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
if not py_version:
py_version = f"{sys.version_info.major}.{sys.version_info.minor}"
import ModuleUpdate import ModuleUpdate
ModuleUpdate.update() ModuleUpdate.update()