comparison sat_frontends/jp/cmd_avatar.py @ 3626:82e616b70a2a

CLI: fix section used for config following name change
author Goffi <goffi@goffi.org>
date Fri, 27 Aug 2021 14:46:52 +0200
parents 04283582966f
children 524856bd7b19
comparison
equal deleted inserted replaced
3614:422049bb81d3 3626:82e616b70a2a
47 ) 47 )
48 self.parser.add_argument("jid", nargs='?', default='', help=_("entity")) 48 self.parser.add_argument("jid", nargs='?', default='', help=_("entity"))
49 49
50 async def showImage(self, path): 50 async def showImage(self, path):
51 sat_conf = config.parseMainConf() 51 sat_conf = config.parseMainConf()
52 cmd = config.getConfig(sat_conf, "jp", "image_cmd") 52 cmd = config.getConfig(sat_conf, C.CONFIG_SECTION, "image_cmd")
53 cmds = [cmd] + DISPLAY_CMD if cmd else DISPLAY_CMD 53 cmds = [cmd] + DISPLAY_CMD if cmd else DISPLAY_CMD
54 for cmd in cmds: 54 for cmd in cmds:
55 try: 55 try:
56 process = await asyncio.create_subprocess_exec(cmd, path) 56 process = await asyncio.create_subprocess_exec(cmd, path)
57 ret = await process.wait() 57 ret = await process.wait()