sphinx-argparse icon indicating copy to clipboard operation
sphinx-argparse copied to clipboard

Exception occured: TypeError: expected str, bytes or os.PathLike object, not NoneType

Open mateusfbsoares opened this issue 1 year ago • 0 comments

(this is a necessary duplicate of https://github.com/sphinx-doc/sphinx/issues/11760)

The following code produces the following error:

.. argparse::
   :filename: ../main.py
   :func: main
   :prog: main.py
Exception occurred:
 \.venv\Lib\site-packages\sphinxarg\ext.py", line 448, in _open_filename
    return open(shutil.which(self.options['filename']))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType

mateusfbsoares avatar Jan 22 '24 16:01 mateusfbsoares