Explicit disabling of batch file delayed expansion

This commit is contained in:
Jonathan Wade 2014-07-02 14:45:50 -04:00 committed by Dirk Thomas
parent 227c6b852a
commit 591df402d2
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ set ROS_DISTRO=indigo
REM python function to generate ROS package path based on all parent workspaces (prepends the separator if necessary)
REM do not use EnableDelayedExpansion here, it messes with the != symbols
setlocal disabledelayedexpansion
echo from __future__ import print_function > _parent_package_path.py
echo import os >> _parent_package_path.py
echo env_name = 'CATKIN_WORKSPACES' >> _parent_package_path.py
@ -17,6 +18,7 @@ echo path = '' >> _parent_package_path.py
echo for item in items: >> _parent_package_path.py
echo path += ':' + (os.path.join(item, 'share') if item.find(':') == -1 else item.split(':')[1]) >> _parent_package_path.py
echo print(path) >> _parent_package_path.py
endlocal
setlocal EnableDelayedExpansion