diff options
author | diSabler <dissy@ya.ru> | 2013-05-03 21:08:35 +0400 |
---|---|---|
committer | diSabler <dissy@ya.ru> | 2013-05-03 21:08:35 +0400 |
commit | 5d6efbab03663cad4b68c62fdbaf6f6131cedba8 (patch) | |
tree | b7460731258f38cd26ed04f0c5a3501888e4326e /kernel.py | |
parent | 10bc6560457165f3322070976820040f7805cac2 (diff) |
fix: exception in oboobs plugin
fix: plugin command
chg: windows detection
Diffstat (limited to 'kernel.py')
-rw-r--r-- | kernel.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |