Command._usage assumes the executable is called "bzr"

Bug #431054 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

As I'm reusing bzr's command handling code in a wholly separate script, this isn't appropriate.

Making a guess based on sys.argv[0] will probably work fairly well.

Revision history for this message
Robert Collins (lifeless) wrote :

Pull it out to a helper function please; argv[0] can be all over the place.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 431054] [NEW] Command._usage assumes the executable is called "bzr"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Hudson wrote:
> Public bug reported:
>
> As I'm reusing bzr's command handling code in a wholly separate script,
> this isn't appropriate.
>
> Making a guess based on sys.argv[0] will probably work fairly well.
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

I think there are some problems with sys.argv[0] in the presence/absence
of sys.frozen. But certainly something like that is probably reasonable.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqxbBoACgkQJdeBCYSNAAPmLwCfSPf9FGqw6cdpJ6NcYiNJHW81
/BgAoIyVXy7VMZ8uPqUBGzo8vt6o3Me6
=ziCm
-----END PGP SIGNATURE-----

Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Low
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.