Rename MuJoCo (mjpython).app -> MuJoCo_(mjpython).app

This commit is contained in:
Kristian Hartikainen
2024-10-04 10:06:09 +03:00
parent dba32e827c
commit 5d46884efe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ def get_executable_path():
def main(argv):
module_dir = os.path.dirname(importlib.util.find_spec('mujoco').origin)
os.environ['MJPYTHON_BIN'] = os.path.join(
module_dir, 'MuJoCo (mjpython).app/Contents/MacOS/mjpython')
module_dir, 'MuJoCo_(mjpython).app/Contents/MacOS/mjpython')
# Conda doesn't create a separate shared library for Python.
# We instead use the Python binary itself, which can be dlopened just as well.
+1 -1
View File
@@ -218,7 +218,7 @@ class BuildCMakeExtension(build_ext.build_ext):
src_dir = os.path.join(os.path.dirname(__file__), 'mujoco/mjpython')
dst_contents_dir = os.path.join(
os.path.dirname(self.get_ext_fullpath(self.extensions[0].name)),
'MuJoCo (mjpython).app/Contents')
'MuJoCo_(mjpython).app/Contents')
os.makedirs(dst_contents_dir)
shutil.copyfile(os.path.join(src_dir, 'Info.plist'),
os.path.join(dst_contents_dir, 'Info.plist'))