':param workdir: The working directory
:yield: The directories where we might find profiles'

def get_profile_paths(self, workdir):

    if (workdir is not None):
        if os.path.exists(workdir):
            (yield workdir)
        profile_path = os.path.join(workdir, 'profiles')
        if os.path.exists(profile_path):
            (yield profile_path)
    profile_path = os.path.join(get_home_dir(), 'profiles')
    if os.path.exists(profile_path):
        (yield profile_path)
