diff --git a/docs/conf.py b/docs/conf.py index 29f674cbe..cc6c04303 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,6 +4,12 @@ from pkg_resources import get_distribution +if os.environ.get("READTHEDOCS"): + checkout_name = os.path.basename(os.path.dirname(os.path.realpath(__file__))) + os.environ["_MJ_INSTALL_DIR"] = os.path.realpath( + os.path.join("..", "..", "conda", checkout_name, "lib") + ) + import jaxsim # -- Version information