mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 936555 - make mozinfo use MozconfigLoader to locate the mozconfig; r=gps
This commit is contained in:
parent
0cdfeef8f7
commit
5161a50479
@ -8,7 +8,7 @@
|
||||
import os
|
||||
import re
|
||||
import json
|
||||
|
||||
import mozbuild.mozconfig as mozconfig
|
||||
|
||||
def build_dict(config, env=os.environ):
|
||||
"""
|
||||
@ -27,10 +27,9 @@ def build_dict(config, env=os.environ):
|
||||
d = {}
|
||||
d['topsrcdir'] = config.topsrcdir
|
||||
|
||||
if 'MOZCONFIG' in env:
|
||||
mozconfig = env["MOZCONFIG"]
|
||||
mozconfig = os.path.join(config.topsrcdir, mozconfig)
|
||||
d['mozconfig'] = os.path.normpath(mozconfig)
|
||||
the_mozconfig = mozconfig.MozconfigLoader(config.topsrcdir).find_mozconfig()
|
||||
if the_mozconfig:
|
||||
d['mozconfig'] = the_mozconfig
|
||||
|
||||
# os
|
||||
o = substs["OS_TARGET"]
|
||||
|
Loading…
Reference in New Issue
Block a user