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

Skip to content

Commit 41deaa9

Browse files
committed
fixed a bug in __init__.py's dependency checking
svn path=/trunk/matplotlib/; revision=1941
1 parent a0f2974 commit 41deaa9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def _get_data_path():
431431

432432
def checkdep_dvipng():
433433
stdin, stdout = os.popen4('dvipng -v')
434-
if 'dvipng' in stdout.read(): return True
434+
if 'This is dvipng' in stdout.read(): return True
435435
else:
436436
verbose.report('dvipng not found!', 'helpful')
437437
return False
@@ -453,7 +453,7 @@ def checkdep_ghostscript():
453453

454454
def checkdep_ps2eps():
455455
stdin, stdout = os.popen4('ps2eps -v')
456-
if 'ps2eps' in stdout.read(): return True
456+
if 'ps2eps - convert PostScript to EPS' in stdout.read(): return True
457457
else:
458458
verbose.report('ps2eps not found!', 'helpful')
459459
return False
@@ -468,7 +468,7 @@ def checkdep_tex():
468468

469469
def checkdep_xpdf():
470470
stdin, stdout = os.popen4('xpdf -v')
471-
if 'xpdf' in stdout.read(): return True
471+
if 'xpdf version' in stdout.read(): return True
472472
else:
473473
verbose.report('xpdf not found!', 'helpful')
474474
return False

0 commit comments

Comments
 (0)