Rename MuJoCo (mjpython).app -> MuJoCo_(mjpython).app
This commit is contained in:
@@ -46,7 +46,7 @@ def get_executable_path():
|
|||||||
def main(argv):
|
def main(argv):
|
||||||
module_dir = os.path.dirname(importlib.util.find_spec('mujoco').origin)
|
module_dir = os.path.dirname(importlib.util.find_spec('mujoco').origin)
|
||||||
os.environ['MJPYTHON_BIN'] = os.path.join(
|
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.
|
# Conda doesn't create a separate shared library for Python.
|
||||||
# We instead use the Python binary itself, which can be dlopened just as well.
|
# We instead use the Python binary itself, which can be dlopened just as well.
|
||||||
|
|||||||
+1
-1
@@ -218,7 +218,7 @@ class BuildCMakeExtension(build_ext.build_ext):
|
|||||||
src_dir = os.path.join(os.path.dirname(__file__), 'mujoco/mjpython')
|
src_dir = os.path.join(os.path.dirname(__file__), 'mujoco/mjpython')
|
||||||
dst_contents_dir = os.path.join(
|
dst_contents_dir = os.path.join(
|
||||||
os.path.dirname(self.get_ext_fullpath(self.extensions[0].name)),
|
os.path.dirname(self.get_ext_fullpath(self.extensions[0].name)),
|
||||||
'MuJoCo (mjpython).app/Contents')
|
'MuJoCo_(mjpython).app/Contents')
|
||||||
os.makedirs(dst_contents_dir)
|
os.makedirs(dst_contents_dir)
|
||||||
shutil.copyfile(os.path.join(src_dir, 'Info.plist'),
|
shutil.copyfile(os.path.join(src_dir, 'Info.plist'),
|
||||||
os.path.join(dst_contents_dir, 'Info.plist'))
|
os.path.join(dst_contents_dir, 'Info.plist'))
|
||||||
|
|||||||
Reference in New Issue
Block a user