diff --git a/src-py/renatoxsr/utils/pandoc.py b/src-py/renatoxsr/utils/pandoc.py index 435c139..afdc7e4 100644 --- a/src-py/renatoxsr/utils/pandoc.py +++ b/src-py/renatoxsr/utils/pandoc.py @@ -19,7 +19,7 @@ def pandoc( logger.info("%s: from '%s' to '%s'", bin, input_file, output) if not Path(bin).is_file(): which_bin = shutil.which(bin) - if not Path(bin).is_file(): + if not Path(which_bin).is_file(): raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), bin) fpath = Path(input_file)