[openrtm-commit:00289] r431 - branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 8月 2日 (火) 21:04:57 JST


Author: kurihara
Date: 2011-08-02 21:04:56 +0900 (Tue, 02 Aug 2011)
New Revision: 431

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

Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py	2011-08-01 12:35:16 UTC (rev 430)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/ManagerConfig.py	2011-08-02 12:04:56 UTC (rev 431)
@@ -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,6 @@
         prop.load(fd)
         fd.close()
       except:
-        print "Error: file open."
         print OpenRTM_aist.Logger.print_exception()
 
     self.setSystemInformation(prop)
@@ -256,7 +255,6 @@
     try:
       opts, args = getopt.getopt(argv[1:], "adlf:o:p:")
     except getopt.GetoptError:
-      print "Error: getopt error!"
       print OpenRTM_aist.Logger.print_exception()
       return
 
@@ -327,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:
@@ -416,7 +416,6 @@
     try:
       fp = open(filename)
     except:
-      print OpenRTM_aist.Logger.print_exception()
       return False
     else:
       fp.close()



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