From a611b7bf6dcf146e7250fbad093d30e5dde7cdeb Mon Sep 17 00:00:00 2001 From: Kristian Hartikainen Date: Tue, 4 Apr 2023 19:58:43 +0100 Subject: [PATCH] Fix typos --- python/mujoco/structs.cc | 4 ++-- python/setup.py | 6 +++--- src/user/user_model.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/mujoco/structs.cc b/python/mujoco/structs.cc index a76a026b..fc586069 100644 --- a/python/mujoco/structs.cc +++ b/python/mujoco/structs.cc @@ -428,8 +428,8 @@ MjModelWrapper MjModelWrapper::LoadXML( namespace { // A byte at the start of serialized mjModel structs, which can be incremented -// when we change the serialization logic to reject pickles from an -// unsupported future version. +// when we change the serialization logic to reject pickles from an unsupported +// future version. constexpr static char kSerializationVersion = 1; void CheckInput(const std::istream& input, std::string class_name) { diff --git a/python/setup.py b/python/setup.py index 4a4f1ee9..1670c7a6 100644 --- a/python/setup.py +++ b/python/setup.py @@ -174,8 +174,8 @@ class BuildCMakeExtension(build_ext.build_ext): f'{MUJOCO_PLUGIN_PATH} environment variable is not set') library_path = None include_path = None - plugin_path = os.environ['MUJOCO_PLUGIN_PATH'] - for directory, subdirs, filenames in os.walk(os.environ['MUJOCO_PATH']): + plugin_path = os.environ[MUJOCO_PLUGIN_PATH] + for directory, subdirs, filenames in os.walk(os.environ[MUJOCO_PATH]): if self._is_apple and 'mujoco.framework' in subdirs: return (os.path.join(directory, 'mujoco.framework/Versions/A'), os.path.join(directory, 'mujoco.framework/Headers'), @@ -191,7 +191,7 @@ class BuildCMakeExtension(build_ext.build_ext): def _copy_external_libraries(self): dst = os.path.dirname(self.get_ext_fullpath(self.extensions[0].name)) - for directory, _, filenames in os.walk(os.environ['MUJOCO_PATH']): + for directory, _, filenames in os.walk(os.environ[MUJOCO_PATH]): for pattern in get_external_lib_patterns(): for filename in fnmatch.filter(filenames, pattern): shutil.copyfile(os.path.join(directory, filename), diff --git a/src/user/user_model.cc b/src/user/user_model.cc index e129775a..be546304 100644 --- a/src/user/user_model.cc +++ b/src/user/user_model.cc @@ -481,7 +481,7 @@ int mjCModel::NumObjects(mjtObj type) { -// get poiner to specified object +// get pointer to specified object mjCBase* mjCModel::GetObject(mjtObj type, int id) { if (id>=0 && id