Lines Matching full:os
10 import os
28 TFM_ROOT_DIR = os.path.join(sys.path[0], '..')
60 if not os.path.isfile(template):
289 if not os.path.isfile(item):
298 expanded_path = os.path.expandvars(dict['manifest']).replace('\\', '/')
303 … path_relative_to_manifest_list = os.path.join(os.path.dirname(item), # path of manifest list
305 if os.path.isfile(path_relative_to_manifest_list):
410 manifest_out_basename = os.path.splitext(os.path.basename(manifest_path))[0]
413 output_path = os.path.expandvars(manifest_item['output_path'])
417 manifest_head_file = os.path.join(OUT_DIR, output_path, 'psa_manifest',
420 intermedia_file = os.path.join(OUT_DIR, output_path, 'auto_generated',
423 load_info_file = os.path.join(OUT_DIR, output_path, 'auto_generated',
426 output_dir = os.path.join(OUT_DIR, output_path).replace('\\', '/')
493 …manifesttemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/manifestfilename.template…
494 …memorytemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/partition_intermedia.templa…
495 …infotemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/partition_load_info.template'…
507 outfile_path = os.path.dirname(one_partition['header_file'])
508 if not os.path.exists(outfile_path):
509 os.makedirs(outfile_path)
515 intermediafile_path = os.path.dirname(one_partition['intermedia_file'])
516 if not os.path.exists(intermediafile_path):
517 os.makedirs(intermediafile_path)
522 infofile_path = os.path.dirname(one_partition['loadinfo_file'])
523 if not os.path.exists(infofile_path):
524 os.makedirs(infofile_path)
549 manifest_out_file = os.path.expandvars(file['output'])
551 templatefile_name = os.path.expandvars(file['template'])
553 manifest_out_file = os.path.join(OUT_DIR, manifest_out_file)
555 outfile_path = os.path.dirname(manifest_out_file)
556 if not os.path.exists(outfile_path):
557 os.makedirs(outfile_path)
730 OUT_DIR = os.path.abspath(args.outdir)
732 manifest_lists = [os.path.abspath(x) for x in args.manifest_lists]
733 gen_file_lists = [os.path.abspath(x) for x in args.gen_file_args]
742 os.chdir(os.path.join(sys.path[0], '..'))