Lines Matching refs:os
17 import os
51 if os.path.isdir(input_path) and not os.path.islink(input_path):
53 tem_list = os.listdir(input_path)
55 each_path = os.path.join(input_path, each)
62 work_dir = os.getcwd()
63 os.chdir(args.src_dir)
67 output_path = os.path.join("%s/../images" % os.getcwd(), args.device)
69 if not judge_updater_img_available(os.getcwd()):
71 output_path = os.path.join("%s/../images" % os.getcwd(), "updater.img")
73 output_path = os.path.join(work_dir, args.device)
78 os.chdir(work_dir)
80 if conf_size < os.path.getsize(output_path):
83 (conf_size, os.path.getsize(output_path)))
99 ramdisk_img = os.path.join(root_dir, "images", "ramdisk.img")
100 ramdisk_gz = os.path.join(root_dir, "images", "ramdisk.img.gz")
102 ramdisk_img = os.path.join(root_dir, "images", "updater.img")
103 ramdisk_gz = os.path.join(root_dir, "images", "updater.img.gz")
104 if os.path.exists(ramdisk_gz):
105 os.remove(ramdisk_gz)
120 chmod_cmd = ['chmod', '664', os.path.join(root_dir, "images", "updater.img")]
122 chmod_cmd = ['chmod', '664', os.path.join(root_dir, "images", "ramdisk.img")]