@classmethod<EOL><INDENT>def create_profile_dir_by_name(cls, path, name='<STR_LIT:default>', config=None):<DEDENT>
if not os.path.isdir(path):<EOL><INDENT>raise ProfileDirError('<STR_LIT>' % path)<EOL><DEDENT>profile_dir = os.path.join(path, '<STR_LIT>' + name)<EOL>return cls(location=profile_dir, config=config)<EOL>
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>".