comparison profilemanager/manager.py @ 25:fc31d3f26755

i seriously need to learn to code
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 15:45:33 -0700
parents 853a3f4b9659
children d260de170cca
comparison
equal deleted inserted replaced
24:853a3f4b9659 25:fc31d3f26755
171 171
172 def parser(self): 172 def parser(self):
173 """ 173 """
174 return a ConfigParser instance appropriate to profiles.ini 174 return a ConfigParser instance appropriate to profiles.ini
175 """ 175 """
176 return ConfigParser().read(self.profiles) 176 parser = ConfigParser()
177 parser.read(self.profiles)
178 return parser
177 179
178 def path(self, profile): 180 def path(self, profile):
179 """returns the path to the profile""" 181 """returns the path to the profile"""
180 profile = self.profile_dict(profile) 182 profile = self.profile_dict(profile)
181 if profile.get('isrelative', None) == '1': 183 if profile.get('isrelative', None) == '1':