[openrtm-commit:02223] r779 - trunk/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 1月 16日 (月) 14:48:38 JST
Author: miyamoto
Date: 2017-01-16 14:48:38 +0900 (Mon, 16 Jan 2017)
New Revision: 779
Modified:
trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py
Log:
[compat,bugfix,->RELENG_1_2] fixed bug.
Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py 2017-01-16 05:32:59 UTC (rev 778)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py 2017-01-16 05:48:38 UTC (rev 779)
@@ -75,13 +75,13 @@
else:
from ctypes.util import find_library
librt = find_library("librt")
- if librt is None:
- raise
- self.rt = ctypes.CDLL(librt)
- #try:
- # self.rt = ctypes.CDLL('librt.so')
- #except:
- # self.rt = ctypes.CDLL('librt.so.1')
+ #if librt is None:
+ # raise
+ #self.rt = ctypes.CDLL(librt)
+ try:
+ self.rt = ctypes.CDLL('librt.so')
+ except:
+ self.rt = ctypes.CDLL('librt.so.1')
self.rt.shm_open.argtypes = [ctypes.c_char_p, ctypes.c_int, ctypes.c_int]
self.rt.shm_open.restype = ctypes.c_int
self.rt.ftruncate.argtypes = [ctypes.c_int, ctypes.c_int]
More information about the openrtm-commit
mailing list