'Create a profile dir by profile name and path.
Parameters
path : unicode
The path (directory) to put the profile directory in.
name : unicode
The name of the profile.  The name of the profile directory will
be "profile_<profile>".'

@classmethod
def create_profile_dir_by_name(cls, path, name=u'default', config=None):

    if (not os.path.isdir(path)):
        raise ProfileDirError(('Directory    not    found:    %s' % path))
    profile_dir = os.path.join(path, (u'profile_' + name))
    return cls(location=profile_dir, config=config)
