~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

(gz) Correct selftest bzr script location lookup logic when bzrlib is in the
 cwd (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
2009
2009
 
2010
2010
    def get_bzr_path(self):
2011
2011
        """Return the path of the 'bzr' executable for this test suite."""
2012
 
        bzr_path = self.get_source_path()+'/bzr'
 
2012
        bzr_path = os.path.join(self.get_source_path(), "bzr")
2013
2013
        if not os.path.isfile(bzr_path):
2014
2014
            # We are probably installed. Assume sys.argv is the right file
2015
2015
            bzr_path = sys.argv[0]