~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Martin Pool
  • Date: 2005-09-22 13:32:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050922133202-347cfd35d2941dd5
- simple weave-based annotate code (not complete)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    print >>sys.stderr, "bzr: error: cannot find a suitable python interpreter"
41
41
    print >>sys.stderr, "  (need %d.%d or later)" % NEED_VERS
42
42
    sys.exit(1)
43
 
if hasattr(os, "unsetenv"):
44
 
    os.unsetenv(REINVOKE)
 
43
os.unsetenv(REINVOKE)
45
44
 
46
 
try:
47
 
    import bzrlib
48
 
    import bzrlib.commands
49
 
    import bzrlib.trace
50
 
except ImportError, e:
51
 
    sys.stderr.write("bzr: ERROR: "
52
 
                     "Couldn't import bzrlib and dependencies.\n"
53
 
                     "Please check bzrlib is on your PYTHONPATH.\n"
54
 
                     "\n")
55
 
    raise
 
45
import bzrlib
 
46
import bzrlib.commands
 
47
import bzrlib.trace
56
48
 
57
49
if __name__ == '__main__':
58
50
    bzrlib.trace.enable_default_logging()
59
51
    sys.exit(bzrlib.commands.main(sys.argv))
60
 
else:
61
 
    pass    # should this give an error? - it can't be used as a lib