Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d235b02 commit f2118adCopy full SHA for f2118ad
1 file changed
lib/matplotlib/tests/test_backend_pgf.py
@@ -52,9 +52,7 @@ def check_for(texsystem):
52
53
54
def _has_tex_package(package):
55
- return (shutil.which("kpsewhich")
56
- and subprocess.run(["kpsewhich", f"{package}.sty"],
57
- stdout=subprocess.PIPE).returncode == 0)
+ return bool(mpl.dviread.find_tex_file(f"{package}.sty"))
58
59
60
def compare_figure(fname, savefig_kwargs={}, tol=0):
0 commit comments