()
Get platform-dependent prefix and extension of MuJoCo shared library.
Get platform-dependent prefix and extension of MuJoCo shared library.
Get platform - dependent prefix and extension of MuJoCo shared library .
def _get_shared_library_filename():
  """Get platform-dependent prefix and extension of MuJoCo shared library."""
  name = "mujoco"
  version = "2.1.1"
  if _PLATFORM == "Linux":
    return "lib{}.so.{}".format(name, version)
  elif _PLATFORM == "Darwin":
    return "lib{}.{}.dylib".format(name, version)
  elif _PLATFORM == "Windows":
    return "{}.dll".format(name)
  else:
    raise OSError("Unsupported platform: {}".format(_PLATFORM))
def _get_shared_library_filename ( ) : name = "mujoco" version = "2.1.1" if _PLATFORM == "Linux" : return "lib{}.so.{}" . format ( name , version ) elif _PLATFORM == "Darwin" : return "lib{}.{}.dylib" . format ( name , version ) elif _PLATFORM == "Windows" : return "{}.dll" . format ( name ) else : raise OSError ( "Unsupported platform: {}" . format ( _PLATFORM ) )