@classmethod
    def find_profile_dir_by_name(cls, ipython_dir, name='default', config=None):
        dirname = 'profile_' + name
        paths = [os.getcwd(), ipython_dir]
        for p in paths:
            profile_dir = os.path.join(p, dirname)
            if os.path.isdir(profile_dir):
                return cls(location=profile_dir, config=config)
        else:
            raise ProfileDirError('Profile directory not found in paths: %s' % dirname)
:type transaction: Transaction
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/profiledir.py/ProfileDir.find_profile_dir_by_name--crossover with--dataset/ETHPy150Open Tanganelli/CoAPthon/coapthon/layers/observelayer.py/ObserveLayer.send_response