Remove ProjectConfig from cache on saving

This commit is contained in:
Ivan Kravets
2019-08-28 22:43:34 +03:00
parent 883a97a38c
commit 9fa424ea9b
2 changed files with 4 additions and 1 deletions

View File

@@ -312,6 +312,9 @@ class ProjectConfig(object):
return json.dumps(result)
def save(self, path=None):
path = path or self.path
if path in self._instances:
del self._instances[path]
with open(path or self.path, "w") as fp:
fp.write(CONFIG_HEADER)
self._parser.write(fp)