• Home
  • Raw
  • Download

Lines Matching refs:os

16 import os
43 flags = os.O_WRONLY | os.O_CREAT
46 filename = os.path.join(output_path, f'{product_name}.json')
47 with os.fdopen(os.open(filename, flags, modes), 'w') as f:
102 bundle_json_path = os.path.join(path, 'bundle.json')
128 sep_list.remove(os.sep)
129 component_path = component_path.replace(sep_list[0], os.sep)
140 component_path = os.path.join(project_path, component_relpath)
190 for item in os.scandir(subsystem_path):
203 if os.path.islink(file_path):
205 elif os.path.isfile(file_path):
207 elif os.path.isdir(file_path):
216 link_target = os.readlink(file_path)
246 _subsystem_path = os.path.join(source_root_dir, _path)
264 if not os.path.exists(subsystem_config_file):
279 if not os.path.exists(ohos_build_file):
293 if not os.path.exists(self._build_config_file):
378 parts_path_dict[_pname] = os.path.relpath(
379 os.path.dirname(_build_file), self._source_root_dir)
434 if not os.path.exists(input_file):
450 return os.path.join(source_root_dir, 'productdefine', 'common', 'inherit')
486 for file in os.scandir(product_define_path):
488 product_file_dict.update({file.name: os.path.join(product_define_path, file.name)})
494 output_path = os.path.join(project_path, 'interface', 'sdk-js', 'api', 'device-define-common')
495 folder = os.path.exists(output_path)
498 os.makedirs(output_path, exist_ok=True)
504 …project_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__f…
514 subsystem_config_file = os.path.join(project_path, 'build', 'subsystem_config.json')