diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-23 16:15:40 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-23 16:15:40 (GMT) |
commit | 8c3da877165a83d93923d4c82d627a43631d7ac9 (patch) | |
tree | e4dfb26b87306d37fc736ae7a2828ec72b7d4309 /devbot/environ.py | |
parent | 3442901eea179f4f36d86e7e14f74762c30390fc (diff) |
Prepend sugar-build paths rather than appending
So that if you have sugar installed in the system it doesn't
get used.
Diffstat (limited to 'devbot/environ.py')
-rw-r--r-- | devbot/environ.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devbot/environ.py b/devbot/environ.py index 16b082b..a493134 100644 --- a/devbot/environ.py +++ b/devbot/environ.py @@ -14,7 +14,7 @@ def _add_path(name, path): return splitted = os.environ[name].split(":") - splitted.append(path) + splitted.insert(0, path) os.environ[name] = ":".join(splitted) @@ -28,9 +28,9 @@ def _setup_variables(): _add_path("GIO_EXTRA_MODULES", os.path.join(config.system_lib_dir, "gio", "modules")) _add_path("GI_TYPELIB_PATH", - os.path.join(config.lib_dir, "girepository-1.0")) - _add_path("GI_TYPELIB_PATH", os.path.join(config.system_lib_dir, "girepository-1.0")) + _add_path("GI_TYPELIB_PATH", + os.path.join(config.lib_dir, "girepository-1.0")) _add_path("PKG_CONFIG_PATH", os.path.join(config.lib_dir, "pkgconfig")) _add_path("GST_PLUGIN_PATH", @@ -44,7 +44,7 @@ def _setup_variables(): plat_specific=True)) _add_path("XDG_DATA_DIRS", "/usr/share") - _add_path("XDG_DATA_DIRS", config.share_dir) + _add_path("XDG_DATA_DIRS", config.share_dir) _add_path("XDG_CONFIG_DIRS", "/etc") _add_path("XDG_CONFIG_DIRS", config.etc_dir) |