Re: [Bitbucket] Issue #22: add '~/.fonts' (for user fonts on Ubuntu) to TTFSearchPath (rptlab/reportlab)

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
I added some plausible locations to the search paths and hopefully they will now 
be found. Also revamped the initialization of settings and modifications.

When reportlab is imported we try to use dynamic modifications from

     reportlab.local_rl_mods.py
     optional reportlab_mods.py or ~/.reportlab_mods

reportlab_mods.py can be anywhere on PYTHONPATH. If not present we try 
~/.reportlab_mods which although not a .py file is treated as a python source 
module.

When reportlab.rl_config is imported we pick up settings from

     reportlab.rl_settings.py
     optional reportlab.local_rl_settings.py
     optional reportlab_settings.py or ~/.reportlab_settings

again reportlab_settings.py can be anywhere on PYTHONPATH and if not present we 
try to read and exec ~/.reportlab_settings into our defaults namespace. Andy 
thinks (and I agree) it is probably wrong to use a ~/.reportlab file if an 
application specific one is present.
-- 
Robin Becker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.