Author: tack
Date: Tue May  8 01:26:17 2007
New Revision: 2669

Modified:
   trunk/canvas/src/canvas.py

Log:
Add all directories under /usr/share/fonts recursively.


Modified: trunk/canvas/src/canvas.py
==============================================================================
--- trunk/canvas/src/canvas.py  (original)
+++ trunk/canvas/src/canvas.py  Tue May  8 01:26:17 2007
@@ -61,9 +61,8 @@
 
         font_path = []
         for path in ("/usr/share/fonts",):
-            for f in os.listdir(path):
-                if os.path.isdir(os.path.join(path, f)):
-                    font_path.append(os.path.join(path, f))
+            for root, dirs, files in os.walk(path):
+                font_path.append(root)
 
         self["fontpath"] = font_path
 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to