[Python-projects] hgview: search path for hgview.glade bad in local install?
Nicolas Chauvat
nicolas.chauvat at logilab.fr
Wed Feb 20 17:44:20 CET 2008
On Thu, Jan 24, 2008 at 07:18:47AM +0100, Peter Arrenbrecht wrote:
> Hi all
>
> With the following patch:
>
> diff --git a/hgview/gtk/hgview_gtk.py b/hgview/gtk/hgview_gtk.py
> --- a/hgview/gtk/hgview_gtk.py
> +++ b/hgview/gtk/hgview_gtk.py
> @@ -33,6 +33,7 @@ def load_glade(root=""):
> for _path in [dirname(__file__),
> join(sys.exec_prefix, 'share/hgview'),
> os.path.expanduser('~/share/hgview'),
> + join(dirname(__file__), "../../../../share/hgview"),
> join(dirname(__file__), "../../../../../share/hgview"),
> ]:
> glade_file = join(_path, GLADE_FILE_NAME)
>
> My setup as
>
> python setup.py install --home /home/peo/local
>
> works. Without it, it does not find the hgview.glade file. So either
> have both parent-relative paths, or drop the one with five backsteps
> altogether.
Thanks. Mini-patch above applied to our repository.
--
Nicolas Chauvat
logilab.fr - services en informatique scientifique et gestion de connaissances
More information about the Python-Projects
mailing list