Closed MartinMartimeo closed 8 years ago
Oh, this is actually cooler than my PR, I was even doing
import subprocess
pandoc.core.PANDOC_PATH = subprocess.check_output(['which', 'pandoc']).strip()
TIL shutil.which
+1
:sparkles: :cake: :sparkles:
A blast from the past!
Just calling
pandoc
does not work on all systems and a more preferred way is in finding the executable by python methods. This will try to find the pandoc executable it via the shutil lib or the distutil lib.