Skip to content

Commit

Permalink
Warn when ROS_PYTHON_VERSION is being defaulted
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <[email protected]>
  • Loading branch information
sloretz committed Oct 3, 2019
1 parent f3a22dd commit 88816ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rosdep2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def _rosdep_main(args):
os.environ['ROS_DISTRO'] = options.ros_distro

if 'ROS_PYTHON_VERSION' not in os.environ:
print('WARNING: ROS_PYTHON_VERSION is unset. Defaulting to {}'.format(sys.version[0]), file=sys.stderr)
# Default to same python version used to invoke rosdep
os.environ['ROS_PYTHON_VERSION'] = sys.version[0]

Expand Down

0 comments on commit 88816ef

Please sign in to comment.