labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1425389 - /labs/alike/trunk/demo/run_desc_extractor.py
Date Sun, 23 Dec 2012 01:58:59 GMT
Author: koji
Date: Sun Dec 23 01:58:58 2012
New Revision: 1425389

URL: http://svn.apache.org/viewvc?rev=1425389&view=rev
Log:
list should be sorted before processing each member on Ubuntu

Modified:
    labs/alike/trunk/demo/run_desc_extractor.py

Modified: labs/alike/trunk/demo/run_desc_extractor.py
URL: http://svn.apache.org/viewvc/labs/alike/trunk/demo/run_desc_extractor.py?rev=1425389&r1=1425388&r2=1425389&view=diff
==============================================================================
--- labs/alike/trunk/demo/run_desc_extractor.py (original)
+++ labs/alike/trunk/demo/run_desc_extractor.py Sun Dec 23 01:58:58 2012
@@ -24,7 +24,10 @@ MAX_IMGS = 100 * 4
 
 cfg = conf.Conf('demo-conf.xml')
 
-for fl in os.listdir(IMAGES_DIR)[:MAX_IMGS]:
+imglist = os.listdir(IMAGES_DIR)
+imglist.sort()
+
+for fl in imglist[:MAX_IMGS]:
 
   fi = IMAGES_DIR + '/' + fl
   fo = 'desc/' + fl[:fl.find('.')] + '.txt'



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message