Rob Browning <
r...@defaultvalue.org> writes:
> diff --git a/main.py b/main.py
> index ef22957..8651d02 100755
> --- a/main.py
> +++ b/main.py
> @@ -19,6 +19,12 @@ if os.path.exists("%s/lib/bup/cmd/." % exeprefix):
> cmdpath = "%s/lib/bup/cmd" % exeprefix
> libpath = "%s/lib/bup" % exeprefix
> resourcepath = libpath
> +elif os.path.exists("%s/share/bup/cmd/." % exeprefix):
> + # installed binary in /.../share.
> + # eg. /usr/bin/bup means /usr/share/bup/... is where our libraries are.
> + cmdpath = "%s/share/bup/cmd" % exeprefix
> + libpath = "%s/share/bup" % exeprefix
> + resourcepath = libpath
First off, thanks for the help. My initial inclination was to go ahead
and include the changes, but then I realized that they might need a bit
of adjustment.
While I'm in favor of the overall goal, it looks like we may not be able
to switch exclusively to ".../share/". That's because bup does have at
least one architecture specific file, i.e. _helpers.so, which will need
to stay in lib/bup.
Given that, I think we could just have bup search in both lib and share,
and since there's no reason a subcommand can't be a binary, we may want
dual paths for both bup/bup and bup/cmd. i.e.:
.../lib/bup/cmd
.../share/bup/cmd
.../lib/bup/bup
.../share/bup/bup
If that sounds plausible and you're interested in pursuing the changes,
that's great. If not, we'll consider working on this in the future.
Thanks again.
--
Rob Browning
rlb @
defaultvalue.org and @
debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4