aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-31 21:57:14 +0800
committerAaron LI <aly@aaronly.me>2018-10-31 21:57:14 +0800
commit8b5ee2468d2bdbaacf841487176b2a5e670dffb4 (patch)
tree664f989549107dea0e0a5b120598f870bc7f226f /fg21sim
parent89165bbd9afa22dbabc6abb856ec16869eac8b19 (diff)
downloadfg21sim-8b5ee2468d2bdbaacf841487176b2a5e670dffb4.tar.bz2
configs/manager: Fix the loading of config spec
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/configs/manager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py
index 07f6f77..6c50702 100644
--- a/fg21sim/configs/manager.py
+++ b/fg21sim/configs/manager.py
@@ -131,8 +131,7 @@ class ConfigManager:
If the ``userconfig`` provided, the user configurations is also
loaded, validated, and merged.
"""
- configspec = pkg_resources.resource_string(
- __name__, "config.spec").decode("utf-8")
+ configspec = pkg_resources.resource_stream(__name__, "config.spec")
self._configspec = ConfigObj(configspec, interpolation=False,
list_values=False, _inspec=True,
encoding="utf-8")