From 81b694f78250bc0533e039f68b4c70f01c78e3e1 Mon Sep 17 00:00:00 2001 From: Jean-Francois Doyon Date: Wed, 22 Mar 2006 00:41:52 +0000 Subject: [PATCH] - Add .sconsign to svn:ignore ... - Create a fontscollectionpath in paths.py and use it. --- bindings/python/mapnik/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/mapnik/__init__.py b/bindings/python/mapnik/__init__.py index d4b296827..cc88b145f 100644 --- a/bindings/python/mapnik/__init__.py +++ b/bindings/python/mapnik/__init__.py @@ -26,7 +26,7 @@ flags = getdlopenflags() setdlopenflags(RTLD_NOW | RTLD_GLOBAL) from _mapnik import * -from paths import inputpluginspath +from paths import inputpluginspath, fontscollectionpath # The base Boost.Python class BoostPythonMetaclass = Coord.__class__ @@ -58,7 +58,7 @@ from mapnik import DatasourceCache DatasourceCache.instance().register_datasources('%s' % inputpluginspath) #register some fonts from mapnik import FontEngine -FontEngine.instance().register_font('/usr/local/lib/mapnik/fonts/Vera.ttf') +FontEngine.instance().register_font('%s/Vera.ttf' % fontscollectionpath) #set dlopen flags back to the original setdlopenflags(flags)