Bug 1356934 - Don't assume the path to the taskcluster config is relative to topsrcdir. r=gps

--HG--
extra : rebase_source : 4f9f30f563b60649f4fe26836c766e16d4b54491
This commit is contained in:
Mike Hommey 2017-04-17 09:05:13 +09:00
parent 4199850ee1
commit 59c62bd61c

View File

@ -1666,8 +1666,8 @@ class PackageFrontend(MachCommandBase):
# TODO: move to the taskcluster package
def tasks(kind):
kind_path = mozpath.join('taskcluster', 'ci', kind)
with open(mozpath.join(self.topsrcdir, kind_path, 'kind.yml')) as f:
kind_path = mozpath.join(self.topsrcdir, 'taskcluster', 'ci', kind)
with open(mozpath.join(kind_path, 'kind.yml')) as f:
config = yaml.load(f)
tasks = Kind(kind, kind_path, config).load_tasks(params, {})
return {