[openrtm-commit:00183] r414 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 6月 16日 (木) 15:59:17 JST


Author: kurihara
Date: 2011-06-16 15:59:17 +0900 (Thu, 16 Jun 2011)
New Revision: 414

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py
Log:
r407 merged.
The number of debug print has been reduced.

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py	2011-06-16 06:56:10 UTC (rev 413)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py	2011-06-16 06:59:17 UTC (rev 414)
@@ -147,8 +147,8 @@
   #
   # -f file   : コンフィギュレーションファイルを指定する。<br>
   # -l module : ロードするモジュールを指定する。(未実装)<br>
-  # -o options: その他オプションを指定する。(未実装)<br>
-  # -d        : デフォルトのコンフィギュレーションを使う。(未実装)<br>
+  # -o options: その他オプションを指定する。<br>
+  # -d        : デフォルトのコンフィギュレーションを使う。<br>
   #
   # @param self
   # @param argv コマンドライン引数
@@ -193,7 +193,7 @@
         prop.load(fd)
         fd.close()
       except:
-        print "Error: file open."
+        print OpenRTM_aist.Logger.print_exception()
 
     self.setSystemInformation(prop)
     if self._isMaster:
@@ -255,7 +255,7 @@
     try:
       opts, args = getopt.getopt(argv[1:], "adlf:o:p:")
     except getopt.GetoptError:
-      print "Error: getopt error!"
+      print OpenRTM_aist.Logger.print_exception()
       return
 
     for opt, arg in opts:
@@ -325,8 +325,10 @@
   # @endif
   def findConfigFile(self):
     if self._configFile != "":
-      if self.fileExist(self._configFile):
-        return True
+      if not self.fileExist(self._configFile):
+        print OpenRTM_aist.Logger.print_exception()
+        return False
+      return True
 
     env = os.getenv(self.config_file_env)
     if env:


Property changes on: trunk/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py
___________________________________________________________________
Added: svn:mergeinfo
   + /branches/RELENG_1_0/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py:345-395
/branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py:396-412



openrtm-commit メーリングリストの案内