Lines Matching refs:os
7 import os
37 param = os.path.expandvars(param)
47 sizeByMb = str(math.ceil(os.path.getsize(line[0]) / 1024 / 1024))
81 simg2img = os.environ.get('SIMG2IMG', 'simg2img')
89 sgdisk = os.environ.get('SGDISK', 'sgdisk')
95 sgdisk = os.environ.get('SGDISK', 'sgdisk')
115 default=os.environ.get("OUT", ".") + "/combined.img")
118 output_filename = os.path.expandvars(args.output)
125 if not os.path.exists(config_filename):
134 if os.path.exists(output_filename) and len(partitions) == 2:
142 … prebuilt_gpt_dir = os.path.dirname(os.path.abspath( __file__ )) + "/prebuilt/gpt/" + gptprefix
145 if os.path.exists(gpt_head) and os.path.exists(gpt_tail):
162 offset = os.path.getsize(output_filename)
171 offset = os.path.getsize(output_filename)
177 offset = os.path.getsize(output_filename) // 1024 // 1024
189 os.close(partition["fd"])
190 os.remove(partition["path"])