aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs/manager.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-16 14:12:20 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-16 14:12:20 +0800
commitb32106dbe5008b9125d4a31fa87bb155358b03b7 (patch)
tree43af3d8af06c1b09b958d48b9271333ca452fd05 /fg21sim/configs/manager.py
parent761870b3da640dd727733d2a76fb9d7c88e8b7dc (diff)
downloadfg21sim-b32106dbe5008b9125d4a31fa87bb155358b03b7.tar.bz2
configs/manager.py: Also dump the "userconfig" value
Diffstat (limited to 'fg21sim/configs/manager.py')
-rw-r--r--fg21sim/configs/manager.py5
1 files changed, 4 insertions, 1 deletions
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)