[tuxdroid-svn] r5095 - software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-09 08:24:56
|
Author: remi
Date: 2009-07-09 10:24:47 +0200 (Thu, 09 Jul 2009)
New Revision: 5095
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py
Log:
* Fixed bug with self.isWindows() (replaced by os.name)
Modified: software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py 2009-07-09 08:23:45 UTC (rev 5094)
+++ software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py 2009-07-09 08:24:47 UTC (rev 5095)
@@ -19,7 +19,6 @@
import sys
import traceback
import random
-import platform
import threading
import time
@@ -156,8 +155,7 @@
"""Get if the platform is Windows or not.
@return: A boolean.
"""
- platformName = platform.system().lower()
- return (platformName == "microsoft") or (platformName == "windows")
+ return os.name == "nt"
# --------------------------------------------------------------------------
# Load the environement data to the plugin parameters.
|