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 8, 2018
1 parent de2152c commit 3bf42e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rosdep2/sources_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def get_sources_list_dirs(source_list_dir):
def get_sources_list_dir():
# base of where we read config files from
# TODO: windows
etc_ros = rospkg.get_etc_ros_dir()
if 'ROSDEP_ETC_DIR' in os.environ:
etc_ros = os.environ['ROSDEP_ETC_DIR']
else:
etc_ros = '/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 3bf42e0

Please sign in to comment.