diff options
| author | Aaron LI <aly@aaronly.me> | 2018-10-31 21:57:14 +0800 |
|---|---|---|
| committer | Aaron LI <aly@aaronly.me> | 2018-10-31 21:57:14 +0800 |
| commit | 8b5ee2468d2bdbaacf841487176b2a5e670dffb4 (patch) | |
| tree | 664f989549107dea0e0a5b120598f870bc7f226f | |
| parent | 89165bbd9afa22dbabc6abb856ec16869eac8b19 (diff) | |
| download | fg21sim-8b5ee2468d2bdbaacf841487176b2a5e670dffb4.tar.bz2 | |
configs/manager: Fix the loading of config spec
| -rw-r--r-- | fg21sim/configs/manager.py | 3 |
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") |
