[openrtm-commit:03138] r933 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 1月 24日 (水) 16:18:10 JST


Author: miyamoto
Date: 2018-01-24 16:18:10 +0900 (Wed, 24 Jan 2018)
New Revision: 933

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/ModuleManager.py
Log:
[compat, bugfix, ->RELENG_1_2] fixed bug

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/ModuleManager.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/ModuleManager.py	2018-01-24 06:55:10 UTC (rev 932)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/ModuleManager.py	2018-01-24 07:18:10 UTC (rev 933)
@@ -482,11 +482,12 @@
     comp_spec_name = classname+"_spec"
 
 
-    with open(str(fullname)) as f:
-      if f.read().find(comp_spec_name) == -1:
-        return None
+    
         
     try:
+      with open(str(fullname)) as f:
+        if f.read().find(comp_spec_name) == -1:
+          return None
       imp_file = __import__(basename.split(".")[0])
     except:
       return None



More information about the openrtm-commit mailing list