I am currently trying to generate sphinx documentation for scripts which use the ArcGIS arcpy library.
I am running into an issue when sphinx tries to run the scrip
The solution I came up with, while probably no-where near ideal, is to simply check
if 'sphinx' in sys.modules:
in_mxds = [r"C:/test.mxd"]
else:
in_mxds = arcpy.GetParameterAsText(1)
This will ensure the script is not trying to get a parameter from the GUI which isn't set when generating sphinx documents.