Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 941b862

Browse filesBrowse 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
Copy full SHA for 941b862

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/texmanager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/texmanager.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.