Avoid putting the rosbuild stacks dir on RPP if it doesn't exist.

This commit is contained in:
Mike Purvis 2016-03-16 21:36:02 -04:00
parent f475f9499a
commit 6b88eb6a52
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ for workspace in workspaces:
data = f.read()
if data == '':
paths.append(os.path.join(workspace, 'share'))
paths.append(os.path.join(workspace, 'stacks'))
if os.path.isdir(os.path.join(workspace, 'stacks')):
paths.append(os.path.join(workspace, 'stacks'))
else:
for source_path in data.split(';'):
paths.append(source_path)