Mercurial > libervia-backend
diff sat_frontends/jp/common.py @ 3631:bef32f3ccc06
merge branche "@"
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Aug 2021 14:51:40 +0200 |
parents | 82e616b70a2a |
children | 9ca19b317293 fc24e611c9aa |
line wrap: on
line diff
--- a/sat_frontends/jp/common.py Fri Aug 27 08:49:45 2021 +0200 +++ b/sat_frontends/jp/common.py Fri Aug 27 14:51:40 2021 +0200 @@ -199,13 +199,13 @@ content_file_obj.close() # we prepare arguments - editor = config.getConfig(self.sat_conf, "jp", "editor") or os.getenv( + editor = config.getConfig(self.sat_conf, C.CONFIG_SECTION, "editor") or os.getenv( "EDITOR", "vi" ) try: # is there custom arguments in sat.conf ? editor_args = config.getConfig( - self.sat_conf, "jp", editor_args_opt, Exception + self.sat_conf, C.CONFIG_SECTION, editor_args_opt, Exception ) except (NoOptionError, NoSectionError): # no, we check if we know the editor and have special arguments