mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-28 00:43:05 +03:00
Fix when sys.executable
is empty or null
This commit is contained in:
parent
26e2c7e030
commit
a0b22d2203
|
@ -178,6 +178,7 @@ class MacViewer(Viewer):
|
|||
else:
|
||||
raise TypeError("Missing required argument: 'path'")
|
||||
subprocess.call(["open", "-a", "Preview.app", path])
|
||||
if sys.executable:
|
||||
subprocess.Popen(
|
||||
[
|
||||
sys.executable,
|
||||
|
|
Loading…
Reference in New Issue
Block a user