Use mujoco function instead.

This commit is contained in:
Kevin Zakka
2022-03-29 09:57:17 -07:00
parent 691ea00716
commit 8dc08d3733
+1 -9
View File
@@ -81,12 +81,4 @@ if _MUJOCO_GL not in _MUJOCO_GL_DISABLE:
from mujoco.glfw import GLContext
def _get_version() -> str:
with open(os.path.join(HEADERS_DIR, 'mujoco.h'), 'r') as f:
for line in f:
if line.startswith('#define mjVERSION_HEADER'):
version = line.split()[2]
break
return '.'.join([d for d in str(version)])
__version__ = _get_version()
__version__ = mj_versionString()