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.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn