~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

[patch] Lalo Martins: add python path information to bzr --version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1858
1858
        print "  nick: %s" % (branch.nick,)
1859
1859
        if rh:
1860
1860
            print "  revid: %s" % (rh[-1],)
 
1861
    print "Using python interpreter:", sys.executable
 
1862
    import site
 
1863
    print "Using python standard library:", os.path.dirname(site.__file__)
 
1864
    print "Using bzrlib:",
 
1865
    if len(bzrlib.__path__) > 1:
 
1866
        # print repr, which is a good enough way of making it clear it's
 
1867
        # more than one element (eg ['/foo/bar', '/foo/bzr'])
 
1868
        print repr(bzrlib.__path__)
 
1869
    else:
 
1870
        print bzrlib.__path__[0]
 
1871
 
 
1872
    print
1861
1873
    print bzrlib.__copyright__
1862
1874
    print "http://bazaar-vcs.org/"
1863
1875
    print