Lines Matching refs: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):
322 parent = os.path.dirname(path)
331 if os.path.isdir(dir):
333 os.mkdir(dir)
338 if not os.path.isdir(path):
341 for root, dirs, files in os.walk(path):
348 r, ext = os.path.splitext(f)
355 if not os.path.exists(path):
356 os.mkdir(path)
358 for root, dirs, files in os.walk(path, topdown=False):
363 os.remove(os.path.join(root, name))
365 os.rmdir(os.path.join(root, name))