'Find/create a profile dir and return its ProfileDir.
This will create the profile directory if it doesn\'t exist.
Parameters
profile_dir : unicode or str
The path of the profile directory.'

@classmethod
def find_profile_dir(cls, profile_dir, config=None):

    profile_dir = expand_path(profile_dir)
    if (not os.path.isdir(profile_dir)):
        raise ProfileDirError(('Profile    directory    not    found:    %s' % profile_dir))
    return cls(location=profile_dir, config=config)
