Lines Matching refs:config
24 from resources.config import Config
34 config = Config()
36 _ext_scan_path = os.path.join(config.root_path,
46 config_path = os.path.join(p_config_path, 'config.json')
53 config.root_path, info.get('product_path'))
72 'config': config_path,
86 'config': config_path,
89 if config.vendor_path != '':
90 for company in os.listdir(config.vendor_path):
91 company_path = os.path.join(config.vendor_path, company)
97 config_path = os.path.join(product_path, 'config.json')
110 'config': config_path,
113 bip_path = config.built_in_product_path
129 'config': config_path,
133 bipl_path = config.built_in_product_path_for_llvm
150 'config': config_path,
158 config = Config()
166 os.path.join(config.root_path, _board_path)):
167 board_path = os.path.join(config.root_path, _board_path)
169 board_path = os.path.join(config.root_path, 'device',
174 board_path = os.path.join(config.root_path, 'device',
178 board_config_path = os.path.join(config.root_path,
201 config = Config()
203 files = [os.path.join(config.root_path, file) for file in IoUtil.read_json_file(
205 # Add the product config file to last with highest priority
218 # v3 config files
229 config = Config()
231 files = [os.path.join(config.root_path, file) for file in IoUtil.read_json_file(
233 # Add the product config file to last with highest priority
246 # v3 config files
321 config = os.path.join(config_path, 'config.gni')
322 if not os.path.isfile(config):
325 with open(config, 'rt', encoding='utf-8') as config_file:
329 raise OHOSException(f'board_toolchain_type is None in {config}')
334 def get_vendor_parts_list(config: dict):
335 return _transform(config).get('parts')
342 def _transform(config: dict):
343 subsystems = config.get('subsystems')
345 config.pop('subsystems')
347 config['parts'] = parts
348 return config