allow environment setting of multiple search paths contributed by bitbucket user nikis (transplanted from 3784 with changes) py33
authorrobin
Sat, 07 Dec 2013 18:22:15 +0000
branchpy33
changeset 3932 a26ea864c24a
parent 3931 ceee76b69e7c
child 3933 72eb6482f2e3
allow environment setting of multiple search paths contributed by bitbucket user nikis (transplanted from 3784 with changes)
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	Sat Dec 07 18:22:15 2013 +0000
@@ -65,7 +65,8 @@
             for p in _SAVED[k]:
                 d = (p % D).replace('/',os.sep)
                 if rl_isdir(d): P.append(d)
-            _setOpt(k,P)
+            _setOpt(k,os.pathsep.join(P),lambda x:x.split(os.pathsep))
+            globals()[k] = filter(rl_isdir,globals()[k])
         else:
             v = _SAVED[k]
             if isinstance(v,(int,float)): conv = type(v)