def bin_path(self, release=None):
        """Get the bin path for a particular release."""
        if release:
            for r in self.releases:
                if release in r:
                    return self.releases[r]
            raise MongoOrchestrationError("No such release '%s' in %r"
                                          % (release, self.releases))
        if self.default_release:
            return self.releases[self.default_release]
        if self.releases:
            return list(self.releases.values())[0]
        return ''
def bin_path ( self , release = None ) : if release : for r in self . releases : if release in r : return self . releases [ r ] raise MongoOrchestrationError ( "No such release '%s' in %r" % ( release , self . releases ) ) if self . default_release : return self . releases [ self . default_release ] if self . releases : return list ( self . releases . values ( ) ) [ 0 ] return ''
Get the bin path for a particular release.