diff options
author | Sascha Silbe <sascha-org-sugar-git@silbe.org> | 2009-03-26 15:24:06 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-org-sugar-git@silbe.org> | 2009-03-26 15:24:06 (GMT) |
commit | 2d3c75cc829b7603d681fb08ec030523da28acb0 (patch) | |
tree | cb74bb4a71b0b104bc1510803872328e66e9d36a | |
parent | 8141d32aeb8d64a7aaf50f7fbdfccfc799de33f5 (diff) |
we need both the lib64 and the lib path for gtk-2.0, as different distros use different paths (lib64 for Fedora, lib for Debian-based)
-rw-r--r-- | sjhbuild/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sjhbuild/config.py b/sjhbuild/config.py index df7d569..321669c 100644 --- a/sjhbuild/config.py +++ b/sjhbuild/config.py @@ -53,8 +53,8 @@ class Config(jhbuild.config.Config): # the Python path since '.pth' files (here pygtk.pth) # only work properly in system directories pythonpath_basic = distutils.sysconfig.get_python_lib(prefix='').split('/', 1)[1] - pythonpath_gtk = os.path.join(self.prefix, ["lib", "lib64"][self.use_lib64], pythonpath_basic, 'gtk-2.0') - jhbuild.config.addpath('PYTHONPATH', pythonpath_gtk) + jhbuild.config.addpath('PYTHONPATH', os.path.join(self.prefix, "lib", pythonpath_basic, 'gtk-2.0')) + jhbuild.config.addpath('PYTHONPATH', os.path.join(self.prefix, "lib64", pythonpath_basic, 'gtk-2.0')) # workaround for bug in jhbuild # note: even for use_lib64 we need "lib" here as that's where distutils installs to |