Mercurial > libervia-backend
comparison sat_frontends/jp/base.py @ 3486:c9703067c700
jp: config section is now `cli` instead of `jp` following global renaming
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 Mar 2021 18:16:09 +0100 |
parents | 7892585b7e17 |
children | 509f7a1c67dc |
comparison
equal
deleted
inserted
replaced
3485:7b888a488474 | 3486:c9703067c700 |
---|---|
113 sys.exit(1) | 113 sys.exit(1) |
114 | 114 |
115 self.bridge = bridge_module.AIOBridge() | 115 self.bridge = bridge_module.AIOBridge() |
116 self._onQuitCallbacks = [] | 116 self._onQuitCallbacks = [] |
117 | 117 |
118 def get_config(self, name, section='jp', default=None): | 118 def get_config(self, name, section='cli', default=None): |
119 """Retrieve a setting value from sat.conf""" | 119 """Retrieve a setting value from sat.conf""" |
120 return config.getConfig(self.sat_conf, section, name, default=default) | 120 return config.getConfig(self.sat_conf, section, name, default=default) |
121 | 121 |
122 def guess_background(self): | 122 def guess_background(self): |
123 if not sys.stdout.isatty(): | 123 if not sys.stdout.isatty(): |