Atualizar src-py/renatoxsr/utils/pandoc.py
This commit is contained in:
@@ -19,7 +19,7 @@ def pandoc(
|
|||||||
logger.info("%s: from '%s' to '%s'", bin, input_file, output)
|
logger.info("%s: from '%s' to '%s'", bin, input_file, output)
|
||||||
if not Path(bin).is_file():
|
if not Path(bin).is_file():
|
||||||
which_bin = shutil.which(bin)
|
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)
|
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), bin)
|
||||||
|
|
||||||
fpath = Path(input_file)
|
fpath = Path(input_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user