Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/isida/3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiSabler <dissy@ya.ru>2013-05-03 21:08:35 +0400
committerdiSabler <dissy@ya.ru>2013-05-03 21:08:35 +0400
commit5d6efbab03663cad4b68c62fdbaf6f6131cedba8 (patch)
treeb7460731258f38cd26ed04f0c5a3501888e4326e /kernel.py
parent10bc6560457165f3322070976820040f7805cac2 (diff)
fix: exception in oboobs plugin
fix: plugin command chg: windows detection
Diffstat (limited to 'kernel.py')
-rw-r--r--kernel.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel.py b/kernel.py
index 91987ba..4aed603 100644
--- a/kernel.py
+++ b/kernel.py
@@ -665,12 +665,12 @@ def os_version():
(value, type) = _winreg.QueryValueEx(handle, value)
return value
def get(key): return get_registry_value("HKEY_LOCAL_MACHINE", "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",key)
- osInfo = get("ProductName")
+ osInfo = ' '.join(get("ProductName").split()[:3])
buildInfo = get("CurrentBuildNumber")
try:
spInfo = get("CSDVersion")
- isidaOs = '%s %s (Build: %s) / Python %s' % (osInfo,spInfo,buildInfo,isidaPyVer)
- except: isidaOs = '%s (Build: %s) / Python %s' % (osInfo,buildInfo,isidaPyVer)
+ isidaOs = '%s %s [%s] / Python %s' % (osInfo,spInfo,buildInfo,isidaPyVer)
+ except: isidaOs = '%s [%s] / Python %s' % (osInfo,buildInfo,isidaPyVer)
else: isidaOs = 'unknown'
return isidaOs