[gnome-music/wip/jfelder/gnome-music-in-local] gnome-music.in: Do not the module search path on installation
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gnome-music-in-local] gnome-music.in: Do not the module search path on installation
- Date: Wed, 18 Mar 2020 12:47:23 +0000 (UTC)
commit 00671a5bf17c4c1747c62e9c2a87413f03e50e47
Author: Jean Felder <jfelder src gnome org>
Date: Wed Mar 18 13:33:36 2020 +0100
gnome-music.in: Do not 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
gnome-music.in | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gnome-music.in b/gnome-music.in
index 7ee9498e..6a3b4648 100755
--- a/gnome-music.in
+++ b/gnome-music.in
@@ -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:
+ # 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@')
+
+ # 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]