Commit f2ad6321 authored by Jean Felder's avatar Jean Felder

gnome-music.in: Do not change the module search path on installation

This can lead to some unexpected behaviors. See: #377.

The search path changes are only needed for `local-music` (i.e.: to
launch GNOME Music from the source tree).

Closes: #377
parent 99225107
......@@ -29,15 +29,16 @@ import os
import signal
import sys
# Make sure we'll find the pygobject module, even in JHBuild
sys.path.insert(1, '@pyexecdir@')
# Make sure we'll find the gnomemusic module, even in JHBuild
sys.path.insert(1, '@pythondir@')
_LOCAL = @local_build@
# In the local use case the installed schemas go in <builddir>/data
if _LOCAL:
# In the local use, look for the pygobject module
sys.path.insert(1, '@pyexecdir@')
# In the local use case, use gnomemusic module from the sourcetree
sys.path.insert(1, '@pythondir@')
# In the local use case the installed schemas go in <builddir>/data
os.environ["XDG_DATA_DIRS"] = '@schemasdir@:' + os.environ.get("XDG_DATA_DIRS", "")
import gi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment