=== modified file 'bzrlib/tests/__init__.py' --- bzrlib/tests/__init__.py 2006-08-11 10:03:44 +0000 +++ bzrlib/tests/__init__.py 2006-08-28 22:36:10 +0000 @@ -801,6 +801,9 @@ """ bzr_path = os.path.dirname(os.path.dirname(bzrlib.__file__))+'/bzr' args = list(args) + if not os.path.isfile(bzr_path): + # We are probably installed. Assume sys.argv is the right file + bzr_path = sys.argv[0] process = Popen([sys.executable, bzr_path]+args, stdout=PIPE, stderr=PIPE) out = process.stdout.read()