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

Skip to content

Commit 941b862

Browse files
committed
Fix texmanager.dvipng_hack_alpha() to correctly use Popen.
Previously would never find dvipng, so always returned False.
1 parent f39cdb6 commit 941b862

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)