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.
2 parents db030dd + f2118ad commit 0faffabCopy full SHA for 0faffab
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