]> arthur.barton.de Git - bup.git/commit
'make stupid' stopped working when I moved subcommands into their own dir.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 3 Mar 2010 04:59:08 +0000 (23:59 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 3 Mar 2010 04:59:08 +0000 (23:59 -0500)
commit5bac5e5d943b3094aaaea65dfa5a50d8a16d0c6c
tree5bff3fceef35c43d3b6b3fedad16b9b98ab58dfd
parentf00d3529a7c70672709af1dca236fbb383221a47
'make stupid' stopped working when I moved subcommands into their own dir.

Remote server mode tries to add the directory of argv[0] (the
currently-running program) to the PATH on the remote server, just in case
bup isn't installed in the PATH there, so that it can then run 'bup server'.

However, now that bup-save is in a different place than bup, argv[0] is the
wrong place to look.  Instead, have the bup executable export an environment
variable containing its location, and client.py can use that instead of
argv[0].  Slightly gross, but it works.
lib/bup/client.py
main.py