Use subprocess.Popen for command instead of os.system

This commit is contained in:
Andrew Murray 2020-06-15 19:28:44 +10:00
parent b6c6ed6b66
commit 37230040a3

View File

@ -48,8 +48,9 @@ def show(image, title=None, **options):
if command:
class CommandViewer(Viewer):
def get_command(self, file):
return command + " " + file
def show_file(self, file, **options):
subprocess.Popen([command, file])
return 1
CommandViewer().show(image)
return 1