Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5b7b5d

Browse files
committed
Merge pull request #1914 from mgiuca-google/dvipng_hack_alpha_fix
Fix texmanager.dvipng_hack_alpha() to correctly use Popen.
2 parents f39cdb6 + 941b862 commit b5b7b5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/texmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565

6666
def dvipng_hack_alpha():
6767
try:
68-
p = Popen('dvipng -version', stdin=PIPE, stdout=PIPE, stderr=STDOUT,
69-
close_fds=(sys.platform != 'win32'))
68+
p = Popen(['dvipng', '-version'], stdin=PIPE, stdout=PIPE,
69+
stderr=STDOUT, close_fds=(sys.platform != 'win32'))
7070
except OSError:
7171
mpl.verbose.report('No dvipng was found', 'helpful')
7272
return False

0 commit comments

Comments
 (0)