[geany/geany-plugins] 71ea2c: Merge pull request #400 from kugel-/geany-fix
Frank Lanitz
git-noreply at xxxxx
Fri Mar 11 08:52:55 UTC 2016
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: Frank Lanitz <frank at frank.uvena.de>
Date: Fri, 11 Mar 2016 08:52:55 UTC
Commit: 71ea2c6ba394cafe3e55636d4689cea4fcc9363f
https://github.com/geany/geany-plugins/commit/71ea2c6ba394cafe3e55636d4689cea4fcc9363f
Log Message:
-----------
Merge pull request #400 from kugel-/geany-fix
geanypy: fix loading plugins from user config directory.
Modified Paths:
--------------
geanypy/src/geanypy-plugin.c
Modified: geanypy/src/geanypy-plugin.c
4 lines changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -119,9 +119,11 @@ GeanyPy_start_interpreter(void)
"import os, sys\n"
"path = '%s'.replace('~', os.path.expanduser('~'))\n"
"sys.path.append(path)\n"
+ "path = '%s/plugins'.replace('~', os.path.expanduser('~'))\n"
+ "sys.path.append(path)\n"
"path = '%s'.replace('~', os.path.expanduser('~'))\n"
"sys.path.append(path)\n"
- "import geany\n", py_dir, GEANYPY_PLUGIN_DIR);
+ "import geany\n", py_dir, geany_data->app->configdir, GEANYPY_PLUGIN_DIR);
g_free(py_dir);
PyRun_SimpleString(init_code);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list