You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using sphinx-fortran on windows systems, I noticed that the function get_src in module fortran_autodoc.py was wrongly processing filenames with full path stored in block['from']. On win system, a letter is generally used to identify the storage drive, having a column ':' after this letter. The column is used to get the parent block, as in numpy.f2py.crackfortran.py docstring:
B['from'] --- string showing the 'parents' of the current block
This prevents correct execution of sphinx-fortran on win10 for instance.
I suggest the following new version of the function that fixed the issue in my case :
defget_src(self, block):
"""Get the source lines of the file including this block"""srcfile=block['from']
ifos.name!='nt'ornotos.path.isfile(block['from']):
srcfile=block['from'].split(':')[0]
returnself.src[srcfile]
Thanks for your kind attention.
Regards,
P.I.: I cannot use a pull request.
The text was updated successfully, but these errors were encountered:
Hello,
when using sphinx-fortran on windows systems, I noticed that the function get_src in module
fortran_autodoc.py
was wrongly processing filenames with full path stored in block['from']. On win system, a letter is generally used to identify the storage drive, having a column ':' after this letter. The column is used to get the parent block, as in numpy.f2py.crackfortran.py docstring:B['from'] --- string showing the 'parents' of the current block
This prevents correct execution of sphinx-fortran on win10 for instance.
I suggest the following new version of the function that fixed the issue in my case :
Thanks for your kind attention.
Regards,
P.I.: I cannot use a pull request.
The text was updated successfully, but these errors were encountered: