dabo Commit
Revision 6583
Date: 2011-04-27 06:44:55 -0700 (Wed, 27 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6583
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Added code to register c:\windows\fonts on Windows. Untested.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2011-04-27 13:43:13 UTC (rev 6582)
+++ trunk/dabo/lib/reportWriter.py 2011-04-27 13:44:55 UTC (rev 6583)
@@ -89,7 +89,8 @@
elif sys.platform[:3] == "dar":
fontPaths = ["/Network/Library/Fonts", "/Library/Fonts",
"System/Library/Fonts", "%s/Library/Fonts" % os.path.expanduser("~")]
elif sys.platform[:3] == "win":
- fontPaths = []
+ windir = os.environ.get("windir", "c:/windows")
+ fontPaths = [os.path.join(windir, "fonts")]
for fontPath in fontPaths:
if os.path.exists(fontPath) and os.path.isdir(fontPath):
_______________________________________________
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]