comparison profilemanager/manager.py @ 42:232188e7c04c

more cleanup
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 18:56:34 -0700
parents 769447f8cd08
children 49cc40572f46
comparison
equal deleted inserted replaced
41:769447f8cd08 42:232188e7c04c
185 parser.add_section(section) 185 parser.add_section(section)
186 186
187 # add metadata 187 # add metadata
188 parser.set(section, 'Name', profile) 188 parser.set(section, 'Name', profile)
189 parser.set(section, 'IsRelative', '%d' % int(relative)) 189 parser.set(section, 'IsRelative', '%d' % int(relative))
190 parser.set(section, 'Path', relative and dirname or path) 190 parser.set(section, 'Path', path)
191 if not ctr: 191 if not ctr:
192 parser.set(section, 'Default', '1') 192 parser.set(section, 'Default', '1')
193 193
194 # write the file 194 # write the file
195 parser.write(file(self.profiles, 'w')) 195 parser.write(file(self.profiles, 'w'))