This commit is contained in:
Kovid Goyal 2014-03-24 11:11:14 +05:30
parent c2246fdd5a
commit 462b429071

View File

@ -204,7 +204,7 @@ class DynamicConfig(dict):
def decouple(self, prefix):
self.file_path = os.path.join(os.path.dirname(self.file_path), prefix + os.path.basename(self.file_path))
self.refresh(clear_current=False)
self.refresh()
def refresh(self, clear_current=True):
d = {}
@ -287,7 +287,7 @@ class XMLConfig(dict):
def decouple(self, prefix):
self.file_path = os.path.join(os.path.dirname(self.file_path), prefix + os.path.basename(self.file_path))
self.refresh(clear_current=False)
self.refresh()
def refresh(self, clear_current=True):
d = {}