mapnik/mapnik — Issue #1004: provide api to report default path for plugins from C++
Author: springmeyer
Created: 2012-01-05 22:38:32+00:00
State: open

This would be useful to allow for more automatic set up plugins/fonts from pure C++ programs, if they wished. We should be able to do this with a few platform specific apis.

* windows: http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197(v=vs.85).aspx
* osx has `_NSGetExecutablePath`
* bsd systems have `getprogpath`
* linux has /proc/self/exe and also `dladdr` can be used if `HAVE_DLFCN_H`