Skip to content

Commit

Permalink
Add separate ROSDEP_ETC_DIR to help situations like #582.
Browse files Browse the repository at this point in the history
  • Loading branch information
allenh1 committed Feb 10, 2018
1 parent 2744614 commit cd5189e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rosdep2/sources_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ def get_sources_list_dirs(source_list_dir):
def get_sources_list_dir():
# base of where we read config files from
# TODO: windows
if 0:
# we can't use etc/ros because environment config does not carry over under sudo
etc_ros = rospkg.get_etc_ros_dir()
else:
etc_ros = '/etc/ros'
etc_ros = os.environ.get('ROSDEP_ETC_DIR', '/etc/ros')
# compute default system wide sources directory
sys_sources_list_dir = os.path.join(etc_ros, 'rosdep', SOURCES_LIST_DIR)
sources_list_dirs = get_sources_list_dirs(sys_sources_list_dir)
Expand Down

0 comments on commit cd5189e

Please sign in to comment.