Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_avatar.py @ 3631:bef32f3ccc06
merge branche "@"
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Aug 2021 14:51:40 +0200 |
parents | 82e616b70a2a |
children | 524856bd7b19 |
comparison
equal
deleted
inserted
replaced
3625:6559c0f847d4 | 3631:bef32f3ccc06 |
---|---|
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() |