JessicaTegner/pypandoc

source verification runs before cworkdir

Lrakotoson opened this issue ยท 1 comments

Hi ๐Ÿ‘‹

In the convert_file(...) function, the cworkdir is only aknowledged in _convert_input(...) function, which is called after the source verification at _identify_path(source_file).

It would be more practical to check the files once the working directory has been defined.
Otherwise, it would be necessary either to always give a path relative to the old working directory, or to give lists of absolute paths. Which is not really optimal when using extra_args.

ahh I see.
Nice catch.
Will look into this soon, if someone hasn't already.

It's at the top of the priority list