mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-22 21:24:46 +03:00
Use subprocess.Popen for command instead of os.system
This commit is contained in:
parent
b6c6ed6b66
commit
37230040a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user