From 5d46884efedb8e926d1da87406d5fdbea25df182 Mon Sep 17 00:00:00 2001 From: Kristian Hartikainen Date: Fri, 4 Oct 2024 10:06:09 +0300 Subject: [PATCH] Rename `MuJoCo (mjpython).app` -> `MuJoCo_(mjpython).app` --- python/mujoco/mjpython/mjpython.py | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mujoco/mjpython/mjpython.py b/python/mujoco/mjpython/mjpython.py index 4c21a4f3..e1fa78bc 100644 --- a/python/mujoco/mjpython/mjpython.py +++ b/python/mujoco/mjpython/mjpython.py @@ -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. diff --git a/python/setup.py b/python/setup.py index 7807c410..8bac24ff 100644 --- a/python/setup.py +++ b/python/setup.py @@ -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'))