dabo Commit
Revision 6578
Date: 2011-04-26 16:04:13 -0700 (Tue, 26 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6578

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
On mac, to get the user's fonts, this change is needed.


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2011-04-26 22:55:29 UTC (rev 6577)
+++ trunk/dabo/lib/reportWriter.py      2011-04-26 23:04:13 UTC (rev 6578)
@@ -87,7 +87,7 @@
 if sys.platform[:3] == "lin":
        fontPaths = [os.path.join("/usr/share/fonts/truetype", d) for d in 
os.listdir("/usr/share/fonts/truetype")]
 elif sys.platform[:3] == "dar":
-       fontPaths = ["/Network/Library/Fonts", "/Library/Fonts",        
"System/Library/Fonts", "~/Library/Fonts"]
+       fontPaths = ["/Network/Library/Fonts", "/Library/Fonts", 
"System/Library/Fonts", "%s/Library/Fonts" % os.path.expanduser("~")]
 elif sys.platform[:3] == "win":
        fontPaths = []
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to