changeset 1400:4117f1b63765

core (twisted/plugin): use `config.parseMainConf` instad of configparser
author Goffi <goffi@goffi.org>
date Sat, 20 Mar 2021 18:23:18 +0100
parents 28aded9b8460
children aada5471d6bc
files twisted/plugins/libervia_server.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/twisted/plugins/libervia_server.py	Sat Mar 20 18:22:33 2021 +0100
+++ b/twisted/plugins/libervia_server.py	Sat Mar 20 18:23:18 2021 +0100
@@ -181,8 +181,7 @@
         # on the command line.
 
         # FIXME: must be refactored + code can be factorised with backend
-        config_parser = configparser.ConfigParser()
-        config_parser.read(C.CONFIG_FILES)
+        config_parser = config.parseMainConf(True)
         self.handleDeprecated(config_parser)
         for param in self.optParameters + OPT_PARAMETERS_CFG:
             name = param[0]