[openrtm-commit:02513] r702 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 3月 11日 (土) 13:38:44 JST


Author: ga
Date: 2017-03-11 13:38:43 +0900 (Sat, 11 Mar 2017)
New Revision: 702

Modified:
   trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/idlcompile.bat.vsl
Log:
Modified bat file for Python #3982

Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/idlcompile.bat.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/idlcompile.bat.vsl	2017-03-11 04:34:05 UTC (rev 701)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/idlcompile.bat.vsl	2017-03-11 04:38:43 UTC (rev 702)
@@ -1,2 +1,11 @@
- at echo off
-omniidl.exe -bpython -I"%RTM_ROOT%rtm\idl" #foreach($IdlPath in ${idlPathes})-I"${IdlPath}" #end#foreach($IdlFile in ${allIdlFileParamBuild})idl/${IdlFile.IdlFile} #end
+echo off
+setlocal
+for %%I in (python.exe) do if exist %%~$path:I set f=%%~$path:I
+if exist %f% (
+  %f:python.exe=%omniidl.exe -bpython -I"%RTM_ROOT%rtm\idl" #foreach($IdlPath in ${idlPathes})-I"${IdlPath}" #end#foreach($IdlFile in ${allIdlFileParamBuild})idl/${IdlFile.IdlFile} #end
+
+) else (
+  echo "python.exe" can not be found.
+  echo Please modify PATH environmental variable for python command.
+)
+endlocal



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