allow environment setting of multiple search paths contributed by bitbucket user nikis
authorrobin
Tue, 29 Oct 2013 15:00:00 +0000
changeset 3784 10047241869c
parent 3776 ae103172eea8
child 3947 826044f2a532
allow environment setting of multiple search paths contributed by bitbucket user nikis
src/reportlab/rl_config.py
--- a/src/reportlab/rl_config.py	Thu Oct 10 15:06:34 2013 +0100
+++ b/src/reportlab/rl_config.py	Tue Oct 29 15:00:00 2013 +0000
@@ -72,6 +72,7 @@
                 '%(REPORTLAB_DIR)s/../fonts',           #special
                 '%(REPORTLAB_DIR)s/../../fonts',        #special
                 '%(HOME)s/fonts',                       #special
+                '/code/fid-sfr/fonts',
                  )
 
 # places to look for TT Font information
@@ -90,6 +91,7 @@
                 '/Library/Fonts',
                 '/Network/Library/Fonts',
                 '/System/Library/Fonts',
+                '/code/fid-sfr/fonts',
                 )
 
 # places to look for CMap files - should ideally merge with above
@@ -204,7 +206,8 @@
         for p in _SAVED[name]:
             d = (p % D).replace('/',os.sep)
             if rl_isdir(d): P.append(d)
-        _setOpt(name,P)
+        _setOpt(name,os.pathsep.join(P),lambda x:x.split(os.pathsep))
+        globals()[name] = filter(rl_isdir,globals()[name])
 
     for k in V[3:]:
         v = _SAVED[k]