Fix projects.yaml path in validate_tags

This fixes the path for the projects.yaml file in the validate_tags
script.

Change-Id: Ib7a05fb03ef9f4c7e739ba5b712bc2f6fe64d55e
This commit is contained in:
Shamail Tahir 2016-03-29 01:25:33 -04:00
parent cb83cca6e9
commit 55f6386c83
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ repo_validators = [
def main():
filename = os.path.abspath('reference/projects.yaml')
script_path = os.path.abspath(os.path.dirname(__file__))
filename = os.path.abspath(os.path.join(script_path,
'../reference/projects.yaml'))
if not os.path.isfile(filename):
sys.exit("Projects.yaml was not found at %s" % (filename))
with open(filename, 'r') as f:
teams = yaml.load(f.read())
for team in teams: