@mmurooka, please check https://github.com/start-jsk/rtmros_common/blob/master/hrpsys_tools/test/test-hrpsys-config.py#L6 for how to write python script that works for both rosbuild/catkin environmnet