Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 36:a6222b71aab6
return the right thing, finally
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 17:49:28 -0700 |
parents | 216a74146d16 |
children | 76fc1a23182c |
comparison
equal
deleted
inserted
replaced
35:b9d7f5f61e23 | 36:a6222b71aab6 |
---|---|
67 if len(parser.sections()) == 1: | 67 if len(parser.sections()) == 1: |
68 parser.set(section, 'Default', '1') | 68 parser.set(section, 'Default', '1') |
69 parser.write(file(self.profiles, 'w')) | 69 parser.write(file(self.profiles, 'w')) |
70 | 70 |
71 # return the directory name | 71 # return the directory name |
72 return directory | 72 return path |
73 | 73 |
74 def remove(self, name, delete=True): | 74 def remove(self, name, delete=True): |
75 """ | 75 """ |
76 remove a profile from profiles.ini | 76 remove a profile from profiles.ini |
77 - delete: delete the profile directory as well | 77 - delete: delete the profile directory as well |