Skip to content

Commit 399a0eb

Browse files
authored
Merge pull request #885 from cyberbotics/sync-master-3c3f849954ac1076b492679a906662ec988e9865
Sync libcontroller master
2 parents 6038a45 + bd0d0fc commit 399a0eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webots_ros2_driver/webots/lib/controller/python/vehicle/car.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self):
4141
elif sys.platform == 'win32':
4242
path = os.path.join('lib', 'controller', 'car.dll')
4343
elif sys.platform == 'darwin':
44-
path = os.path.join('Contents', 'MacOS', 'lib', 'controller', 'libcar.dylib')
44+
path = os.path.join('Contents', 'lib', 'controller', 'libcar.dylib')
4545
self.api = ctypes.cdll.LoadLibrary(os.path.join(os.environ['WEBOTS_HOME'], path))
4646
self.api.wbu_car_get_front_wheel_radius.restype = ctypes.c_double
4747
self.api.wbu_car_get_indicator_period.restype = ctypes.c_double

webots_ros2_driver/webots/lib/controller/python/vehicle/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def loadApi() -> ctypes.cdll:
4343
car = 'car.dll'
4444
driver = 'driver.dll'
4545
elif sys.platform == 'darwin':
46-
path = os.path.join('Contents', 'MacOS', 'lib', 'controller')
46+
path = os.path.join('Contents', 'lib', 'controller')
4747
car = 'libcar.dylib'
4848
driver = 'libdriver.dylib'
4949
ctypes.cdll.LoadLibrary(os.path.join(os.environ['WEBOTS_HOME'], path, car))

0 commit comments

Comments
 (0)