Added more system checks and help now opens the documentation website

This commit is contained in:
Veronica K. B. Olsen
2019-10-24 21:13:11 +02:00
parent 3ae87b6cf4
commit 4a98f58a20
7 changed files with 42 additions and 649 deletions
+25
View File
@@ -12,6 +12,7 @@
import logging
import configparser
import sys
import nw
from os import path, mkdir, getcwd
@@ -114,6 +115,30 @@ class Config:
self.verPyQtPatch = verQt[2]
self.verPyQtValue = verQt[3]
# Check Python Version
self.verPyString = sys.version.split()[0]
self.verPyMajor = sys.version_info[0]
self.verPyMinor = sys.version_info[1]
self.verPyPatch = sys.version_info[2]
self.verPyHexVal = sys.hexversion
# Check OS Type
self.osType = sys.platform
self.osLinux = False
self.osWindows = False
self.osDarwin = False
self.osUnknown = False
if self.osType.startswith("linux"):
self.osLinux = True
elif self.osType.startswith("darwin"):
self.osDarwin = True
elif self.osType.startswith("win32"):
self.osWindows = True
elif self.osType.startswith("cygwin"):
self.osWindows = True
else:
self.osUnknown = True
return
##