# # $Id: gif-convert.py 990 2017-01-03 08:52:39Z phfaist $ from __future__ import print_function import re import os import sys import os.path import argparse import subprocess sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import pyklfuserscript args = pyklfuserscript.export_type_args_parser().parse_args() if args.query_default_settings: convert = pyklfuserscript.find_executable( ['convert'], [ '/opt/local/bin', os.path.join(os.environ.get('MAGICK_HOME', ''), 'bin') # add more non-trivial paths here (but not necessary to include /usr/bin/ # because we do a PATH search anyway ]) if convert is not None: # found print("convert={}".format(convert)) sys.exit(0)
# # $Id: svg-dvisvgm.py 995 2017-01-10 19:57:24Z phfaist $ from __future__ import print_function import re import os import sys import argparse import subprocess sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import pyklfuserscript args = pyklfuserscript.export_type_args_parser().parse_args() format = args.format dvifile = args.inputfile if args.query_default_settings: dvisvgm = pyklfuserscript.find_executable(['dvisvgm'], [ "/usr/texbin/", "/usr/local/texbin/", "/Library/TeX/texbin/", # add more non-trivial paths here (but not necessary to include /usr/bin/ # because we do a PATH search anyway ]) if dvisvgm is not None: # found