Skip to content

Commit f7cc002

Browse files
committed
Win: add mgs as a name for ghostscript executable
mgs.exe is available in miktext and is: MiKTeX GPL Ghostscript 9.05 (2012-02-08) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details.
1 parent 190c923 commit f7cc002

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ def checkdep_dvipng():
351351

352352
def checkdep_ghostscript():
353353
if sys.platform == 'win32':
354-
gs_execs = ['gswin32c', 'gswin64c', 'gs']
354+
# mgs is the name in miktex
355+
gs_execs = ['gswin32c', 'gswin64c', 'mgs', 'gs']
355356
else:
356357
gs_execs = ['gs']
357358
for gs_exec in gs_execs:

0 commit comments

Comments
 (0)