From b32106dbe5008b9125d4a31fa87bb155358b03b7 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 16 Nov 2016 14:12:20 +0800 Subject: configs/manager.py: Also dump the "userconfig" value --- fg21sim/configs/manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fg21sim/configs') diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index eb6b1d0..59af78a 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -525,12 +525,15 @@ class ConfigManager: NOTE ---- - The original option orders are missing. + * The original option orders are missing. + * The ``self.userconfig`` is also dumped. """ if from_default: data = self._config_default.dict() else: data = self._config.dict() + # Also dump the "userconfig" value + data["userconfig"] = self.userconfig # if flatten: data = _flatten_dict(data) -- cgit v1.2.2