comparison profilemanager/manager.py @ 30:d9886a7e8df7

return the full directory path
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 16:53:33 -0700
parents 105ecbac0928
children 216a74146d16
comparison
equal deleted inserted replaced
29:105ecbac0928 30:d9886a7e8df7
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 dirname 72 return directory
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