~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to obsolete/baz2bzr

  • Committer: Aaron Bentley
  • Date: 2005-09-13 22:49:40 UTC
  • mto: (147.1.21)
  • mto: This revision was merged to the branch mainline in revision 154.
  • Revision ID: abentley@panoramicfeedback.com-20050913224940-c6db07f39dd303be
Updated docs, obsoleted old executibles

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#    along with this program; if not, write to the Free Software
18
18
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 
20
 
from baz_import import import_version, UserError
 
20
import sys
 
21
from errors import NoPyBaz
 
22
try:
 
23
    from baz_import import import_version, UserError
 
24
except NoPyBaz:
 
25
    print >> sys.stderr, "This command requires PyBaz.  Please ensure that it is installed."
 
26
    sys.exit(1)
 
27
 
21
28
import pybaz
22
 
import sys
23
29
import os.path
24
30
 
25
31
def main(args):
66
72
        else:
67
73
            return 0
68
74
    if len(args) == 2:
69
 
        version,output_dir = args[1]
 
75
        version,output_dir = args
70
76
            
71
77
    elif len(args) == 1:
72
78
        output_dir = args[0]