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:
parent
cb83cca6e9
commit
55f6386c83
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue