Lunderberg commented on pull request #9203: URL: https://github.com/apache/tvm/pull/9203#issuecomment-939106017
The issue was that `ExplicitOrder` requires relative paths, and `tvm_path` is currently used to generate the arguments for `ExplcitOrder`. (I had to verify to remind myself why. The implementation of `ExplicitOrder` expects the string representation of the paths [to be an exact match](https://github.com/sphinx-gallery/sphinx-gallery/blob/master/sphinx_gallery/sorting.py#L49) for the path being used. It gets passed the path relative to the [source directory](https://github.com/sphinx-gallery/sphinx-gallery/blob/master/sphinx_gallery/gen_gallery.py#L381), and so that's what we need to give it.) If I remember correctly, I think the failure mode was generating URLs that included the full path to the file, including `/home/Lunderberg`. The path being added to `sys.path` doesn't need to be a relative path, so we could change `tvm_path` to `tvm_path.resolve()` on those two lines. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
