def __enter__(self): '''Returns the class instance to use for Context Management''' # Get the AddonCFG instance for the .cfg file self.config = AddonCFG(self.filepath) # Add the AddonCFG instance to config_files ConfigInstances.add(self.config) # Create the list of sections to add cvars and text to self.sections = list() # Return the instance return self