def update_profiles(self):
for path in [get_ipython_dir(), os.getcwdu()]:<EOL><INDENT>for profile in list_profiles_in(path):<EOL><INDENT>pd = self.get_profile_dir(profile, path)<EOL>if profile not in self.profiles:<EOL><INDENT>self.log.debug("<STR_LIT>" % profile)<EOL>self.profiles[profile] = {<EOL>'<STR_LIT>': profile,<EOL>'<STR_LIT>': pd,<EOL>'<STR_LIT:status>': '<STR_LIT>'<EOL>}<EOL><DEDENT><DEDENT><DEDENT>
List all profiles in the ipython_dir and cwd.