Skip to content

Commit 195c0df

Browse files
Ensure EGL ImportError includes PYOPENGL_PLATFORM value
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent f4b2574 commit 195c0df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

robosuite/renderers/context/egl_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
raise ImportError(
2727
"Cannot use EGL rendering platform. "
2828
"The PYOPENGL_PLATFORM environment variable is set to {!r} "
29-
"(should be either unset or 'egl')."
29+
"(should be either unset or 'egl').".format(PYOPENGL_PLATFORM)
3030
)
3131

3232
from mujoco.egl import egl_ext as EGL

0 commit comments

Comments
 (0)