Reset the config_files when the config directory changes

This commit is contained in:
Andrew Resch 2009-08-03 16:56:01 +00:00
parent c2299b793c
commit abc3964f73
1 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,13 @@ class _ConfigManager:
return False
self.__config_directory = directory
# Reset the config_files so we don't get config from old config folder
# XXX: Probably should have it go through the config_files dict and try
# to reload based on the new config directory
self.save()
self.config_files = {}
return True
def get_config_dir(self):