dabo Commit
Revision 6585
Date: 2011-04-27 15:04:40 -0700 (Wed, 27 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6585
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
C:\Windows/fonts seems to work on my Vista system, but I refactored it anyway.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2011-04-27 13:45:01 UTC (rev 6584)
+++ trunk/dabo/lib/reportWriter.py 2011-04-27 22:04:40 UTC (rev 6585)
@@ -89,8 +89,7 @@
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":
- windir = os.environ.get("windir", "c:/windows")
- fontPaths = [os.path.join(windir, "fonts")]
+ fontPaths = [os.path.join(os.path.expandvars("%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]