geany/geany — pull request #32 by techee (2012-03-04 20:15:55+00:00)
Title: Base path fixes

Because app->project->base_path can be relative, its direct use leads to resolving the directory which is relative to the directory where Geany was started instead of the project directory. Using project_get_base_path() everywhere fixes the problem.

I've also added this function to API so it can be used by the plugins. Once it's in, I'll submit a patch for geany-plugins.

The app->project->base_path member is a bit dangerous because it's tempting to use but in most cases you want the absolute path. Maybe it could be moved to projectprivate.h once all the plugins are fixed.