When running rosrun rosserial_client make_libraries somewhere where the ros_lib directory already exists (for updating message definitions), the script terminates with an error message.
I decided to add these checks in the same way as in line 546, for the sake of consistency. (Python 3.2 and later allow an additional parameter exist_ok for this, but that could not be backported to Melodic.)
When running
rosrun rosserial_client make_libraries
somewhere where theros_lib
directory already exists (for updating message definitions), the script terminates with an error message.I decided to add these checks in the same way as in line 546, for the sake of consistency. (Python 3.2 and later allow an additional parameter
exist_ok
for this, but that could not be backported to Melodic.)