From: Vladimír Vondruš Date: Sun, 5 Nov 2017 17:19:05 +0000 (+0100) Subject: Update bundled latex2svg from upstream. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=e94d7716446b9ff596f86cc66fcaebc3b8bb571b;p=blog.git Update bundled latex2svg from upstream. --- diff --git a/pelican-plugins/m/latex2svg.py b/pelican-plugins/m/latex2svg.py index 8efe81b6..b8613285 100755 --- a/pelican-plugins/m/latex2svg.py +++ b/pelican-plugins/m/latex2svg.py @@ -49,14 +49,12 @@ default_params = { } -if not hasattr(os.environ, 'LIBGS') and not find_library('libgs'): +if not hasattr(os.environ, 'LIBGS') and not find_library('gs'): if sys.platform == 'darwin': # Fallback to homebrew Ghostscript on macOS homebrew_libgs = '/usr/local/opt/ghostscript/lib/libgs.dylib' if os.path.exists(homebrew_libgs): default_params['libgs'] = homebrew_libgs - if sys.platform == 'linux': - default_params['libgs'] = find_library('gs') if not default_params['libgs']: print('Warning: libgs not found')