diff sat_frontends/jp/base.py @ 3555:53fec6309fa3

cli: update constants to use new name
author Goffi <goffi@goffi.org>
date Wed, 09 Jun 2021 17:29:29 +0200
parents 1ac5570fa998
children 04283582966f
line wrap: on
line diff
--- a/sat_frontends/jp/base.py	Wed Jun 09 11:35:49 2021 +0200
+++ b/sat_frontends/jp/base.py	Wed Jun 09 17:29:29 2021 +0200
@@ -68,7 +68,6 @@
     progressbar=None
 
 #consts
-PROG_NAME = "jp"
 DESCRIPTION = """This software is a command line tool for XMPP.
 Get the latest version at """ + C.APP_URL
 
@@ -115,7 +114,7 @@
         self.bridge = bridge_module.AIOBridge()
         self._onQuitCallbacks = []
 
-    def get_config(self, name, section='cli', default=None):
+    def get_config(self, name, section=C.CONFIG_SECTION, default=None):
         """Retrieve a setting value from sat.conf"""
         return config.getConfig(self.sat_conf, section, name, default=default)
 
@@ -435,7 +434,7 @@
             '--version',
             action='version',
             version=("{name} {version} {copyleft}".format(
-                name = PROG_NAME,
+                name = C.APP_NAME,
                 version = self.version,
                 copyleft = COPYLEFT))
         )