mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Added site path for python plugins
This commit is contained in:
parent
6a5552b128
commit
57416634d5
@ -130,6 +130,10 @@ elif test "x$enable_python_plugins" != xno; then
|
|||||||
AX_PYTHON_DEVEL
|
AX_PYTHON_DEVEL
|
||||||
AM_CONDITIONAL([BUILD_PYTHON_API], [true])
|
AM_CONDITIONAL([BUILD_PYTHON_API], [true])
|
||||||
AC_DEFINE([HAVE_PYTHON], [1], [Python support])
|
AC_DEFINE([HAVE_PYTHON], [1], [Python support])
|
||||||
|
pythonsitepath=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" 2>/dev/null`
|
||||||
|
if test "X$pythonsitepath" != "X"; then
|
||||||
|
AC_DEFINE_UNQUOTED([PYTHON_SITE_PATH], ["$pythonsitepath"], [Python Site Path])
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if test "x$enable_python_plugins" = xyes; then
|
if test "x$enable_python_plugins" = xyes; then
|
||||||
AC_MSG_ERROR([Python not found, cannot enable Python plugins.])
|
AC_MSG_ERROR([Python not found, cannot enable Python plugins.])
|
||||||
|
@ -43,6 +43,8 @@ python_env_init(void)
|
|||||||
g_string_append(path, plugins_dir);
|
g_string_append(path, plugins_dir);
|
||||||
g_string_append(path, "/");
|
g_string_append(path, "/");
|
||||||
g_free(plugins_dir);
|
g_free(plugins_dir);
|
||||||
|
g_string_append(path, ":");
|
||||||
|
g_string_append(path, PROF_PYTHON_SITE_PATH);
|
||||||
PySys_SetPath(path->str);
|
PySys_SetPath(path->str);
|
||||||
python_check_error();
|
python_check_error();
|
||||||
g_string_free(path, TRUE);
|
g_string_free(path, TRUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user