aboutsummaryrefslogtreecommitdiff
path: root/launch.py
diff options
context:
space:
mode:
authorSpaceginner <ivan.demian2009@gmail.com>2023-01-26 12:52:44 +0500
committerSpaceginner <ivan.demian2009@gmail.com>2023-01-26 12:52:44 +0500
commit1619233a747830887831cfea2f05fe826fce1bed (patch)
tree099af06cffc3de34f6759eba8fbb3b56a334a5e6 /launch.py
parentf5d73b6a6646b51027c8e6f6c6154f21b58d6af2 (diff)
Only Linux will have max 3.11
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/launch.py b/launch.py
index e39c68e7..52f3bd52 100644
--- a/launch.py
+++ b/launch.py
@@ -20,10 +20,10 @@ skip_install = False
def check_python_version():
version = sys.version_info
version_range = None
- if os.name == "nt":
- version_range = range(7 + 1, 10 + 1)
- else:
+ if platform.system() == "Linux":
version_range = range(7 + 1, 11 + 1)
+ else:
+ version_range = range(7 + 1, 10 + 1)
try:
assert version.major == 3 and version.minor in version_range, "Unsupported Python version, please use Python 3.10.x instead. You can download latest release as of 25th January (3.10.9) from here: https://www.python.org/downloads/release/python-3109/. Please, make sure to first delete current version of Python first and delete `venv` folder inside of WebUI's folder, too."