Lines Matching full:os

10 import os
28 TFM_ROOT_DIR = os.path.join(sys.path[0], '..')
61 if not os.path.isfile(template):
290 if not os.path.isfile(item):
299 expanded_path = os.path.expandvars(dict['manifest']).replace('\\', '/')
304 … path_relative_to_manifest_list = os.path.join(os.path.dirname(item), # path of manifest list
306 if os.path.isfile(path_relative_to_manifest_list):
412 manifest_out_basename = os.path.splitext(os.path.basename(manifest_path))[0]
415 output_path = os.path.expandvars(manifest_item['output_path'])
419 manifest_head_file = os.path.join(OUT_DIR, output_path, 'psa_manifest',
422 intermedia_file = os.path.join(OUT_DIR, output_path, 'auto_generated',
425 load_info_file = os.path.join(OUT_DIR, output_path, 'auto_generated',
428 output_dir = os.path.join(OUT_DIR, output_path).replace('\\', '/')
495 …manifesttemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/manifestfilename.template…
496 …memorytemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/partition_intermedia.templa…
497 …infotemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/partition_load_info.template'…
509 outfile_path = os.path.dirname(one_partition['header_file'])
510 if not os.path.exists(outfile_path):
511 os.makedirs(outfile_path)
517 intermediafile_path = os.path.dirname(one_partition['intermedia_file'])
518 if not os.path.exists(intermediafile_path):
519 os.makedirs(intermediafile_path)
524 infofile_path = os.path.dirname(one_partition['loadinfo_file'])
525 if not os.path.exists(infofile_path):
526 os.makedirs(infofile_path)
551 manifest_out_file = os.path.expandvars(file['output'])
553 templatefile_name = os.path.expandvars(file['template'])
555 manifest_out_file = os.path.join(OUT_DIR, manifest_out_file)
557 outfile_path = os.path.dirname(manifest_out_file)
558 if not os.path.exists(outfile_path):
559 os.makedirs(outfile_path)
732 OUT_DIR = os.path.abspath(args.outdir)
734 manifest_lists = [os.path.abspath(x) for x in args.manifest_lists]
735 gen_file_lists = [os.path.abspath(x) for x in args.gen_file_args]
744 os.chdir(os.path.join(sys.path[0], '..'))