/usr/lib/python2.7/dist-packages/mapnik/mapnik_settings.py is in python-mapnik 1:0.0~20180130-804a7947d-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import os
mapnik_data_dir = os.path.dirname(os.path.realpath(__file__))
env = {}
icu_path = os.path.join(mapnik_data_dir, 'share', 'icu')
if os.path.isdir(icu_path):
env['ICU_DATA'] = icu_path
gdal_path = os.path.join(mapnik_data_dir, 'share', 'gdal')
if os.path.isdir(gdal_path):
env['GDAL_DATA'] = gdal_path
proj_path = os.path.join(mapnik_data_dir, 'share', 'proj')
if os.path.isdir(proj_path):
env['PROJ_LIB'] = proj_path
|