Fix typos

This commit is contained in:
Kristian Hartikainen
2023-04-04 19:58:43 +01:00
parent 5f132af625
commit a611b7bf6d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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) {
+3 -3
View File
@@ -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),
+1 -1
View File
@@ -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<NumObjects(type)) {
switch (type) {