[tuxdroid-svn] r4692 - software_suite_v3/smart-core/smart-server/trunk
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-05-28 09:44:24
|
Author: remi
Date: 2009-05-28 11:44:17 +0200 (Thu, 28 May 2009)
New Revision: 4692
Modified:
software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py
Log:
* updated the resources load (force alphabetic listing)
Modified: software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py 2009-05-28 09:41:58 UTC (rev 4691)
+++ software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py 2009-05-28 09:44:17 UTC (rev 4692)
@@ -448,9 +448,11 @@
for path in os.listdir(resourcesPath):
if path.find(".") == -1:
paths.append(os.path.join(resourcesPath, path))
+ paths.sort()
self.__resourcePathsList = paths
for resourcePath in paths:
resourceList = os.listdir(resourcePath)
+ resourceList.sort()
for resource in resourceList:
if resource.lower().rfind(".py") != -1:
resourceFile = os.path.join(resourcePath, resource)
|