Lines Matching refs:os
3 import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess, shutil
24 """ % { "progname" : os.path.basename(sys.argv[0]) }
29 update_dir = os.path.join(get_kernel_dir(), update_rel_dir)
31 os.mkdir(update_dir, 0755)
33 src_dir = os.path.normpath(os.path.join(original_dir, src_rel_dir))
35 mod_src_dir = os.path.join(modified_dir, src_rel_dir)
36 update_dir = os.path.join(get_kernel_dir(), update_rel_dir)
39 for root, _, files in os.walk(src_dir):
41 _, ext = os.path.splitext(file)
44 src_file = os.path.normpath(os.path.join(root, file))
47 if os.path.exists(os.path.join(mod_src_dir, rel_path)):
48 src_file = os.path.join(mod_src_dir, rel_path)
49 src_str = os.path.join("<modified>", src_rel_dir, rel_path)
51 src_str = os.path.join("<original>", src_rel_dir, rel_path)
52 dst_file = os.path.join(update_dir, rel_path)
64 update_path = os.path.join(update_rel_dir, rel_path)
87 if not os.path.isdir(original_dir):
90 if not os.path.isdir(modified_dir):
98 processFiles(updater, original_dir, modified_dir, "scsi", os.path.join("android", "scsi", "scsi"))