Lines Matching defs:os
3 import sys, os, commands, string
47 d = os.path.dirname(path)
71 if os.path.isfile(file):
78 path = os.path.dirname(path)
86 if os.path.isfile(file):
97 # note that we can't use find_file_from_upwards() since we can't use os.path.abspath
104 return os.path.dirname(file)
115 path = os.path.normpath(bionic_root + "/../../external/kernel-headers/original")
116 if not os.path.isdir(path):
142 ret = os.path.isdir( path )
154 if os.path.exists(path):
161 if os.path.exists(path):
168 if os.path.exists(path):
335 parent = os.path.dirname(path)
344 if os.path.isdir(dir):
346 os.mkdir(dir)
351 if not os.path.isdir(path):
354 for root, dirs, files in os.walk(path):
361 r, ext = os.path.splitext(f)
368 if not os.path.exists(path):
369 os.mkdir(path)
371 for root, dirs, files in os.walk(path, topdown=False):
376 os.remove(os.path.join(root, name))
378 os.rmdir(os.path.join(root, name))