Expand Python module search path
to work around the issue that the gajim module cannot be found
This commit is contained in:
parent
ab041963b1
commit
6d1c659b4b
11
Makefile.am
11
Makefile.am
|
@ -11,14 +11,17 @@ EXTRA_DIST = \
|
|||
intltool-merge.in \
|
||||
intltool-update.in \
|
||||
win \
|
||||
scripts/gajim \
|
||||
scripts/gajim-history-manager \
|
||||
scripts/gajim-remote
|
||||
scripts/gajim.in \
|
||||
scripts/gajim-history-manager.in \
|
||||
scripts/gajim-remote.in
|
||||
|
||||
DISTCLEANFILES = \
|
||||
intltool-extract \
|
||||
intltool-merge \
|
||||
intltool-update
|
||||
intltool-update \
|
||||
scripts/gajim \
|
||||
scripts/gajim-remote \
|
||||
scripts/gajim-history-manager
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
configure \
|
||||
|
|
|
@ -41,6 +41,7 @@ AM_PATH_PYTHON([3.5])
|
|||
AC_SUBST([gajim_srcdir], [\${pkgpythondir}])
|
||||
AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])
|
||||
|
||||
AS_AC_EXPAND(PY_SITEDIR, "${pythondir}")
|
||||
AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
|
||||
AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
|
||||
AS_AC_EXPAND(DOCDIR, "${docdir}")
|
||||
|
@ -65,6 +66,9 @@ AC_CONFIG_FILES([
|
|||
data/gajim-remote.desktop.in
|
||||
data/defs.py
|
||||
gajim/Makefile
|
||||
scripts/gajim
|
||||
scripts/gajim-history-manager
|
||||
scripts/gajim-remote
|
||||
po/Makefile.in
|
||||
plugins/Makefile
|
||||
])
|
||||
|
|
|
@ -27,6 +27,8 @@ if sys.platform != 'win32':
|
|||
if os.geteuid() == 0:
|
||||
sys.exit("You must not launch gajim as root, it is insecure.")
|
||||
|
||||
sys.path.append("@PY_SITEDIR@")
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk
|
|
@ -26,6 +26,8 @@ import sys
|
|||
if os.geteuid() == 0:
|
||||
sys.exit("You must not launch gajim as root, it is insecure.")
|
||||
|
||||
sys.path.append("@PY_SITEDIR@")
|
||||
|
||||
import gajim.gajim_remote as g
|
||||
|
||||
g.GajimRemote()
|
|
@ -27,6 +27,8 @@ if sys.platform != 'win32':
|
|||
if os.geteuid() == 0:
|
||||
sys.exit("You must not launch gajim as root, it is insecure.")
|
||||
|
||||
sys.path.append("@PY_SITEDIR@")
|
||||
|
||||
import gajim.gajim as g
|
||||
|
||||
g.GajimApplication().run(sys.argv)
|
Loading…
Reference in New Issue