Lines Matching refs:os
3 import sys, os, commands, string, commands
45 return os.path.basename(sys.argv[0])
48 return os.path.dirname(sys.argv[0])
55 path = os.path.realpath(sys.argv[0])
56 path = os.path.dirname(path)
66 if os.path.isfile(file):
73 path = os.path.dirname(path)
78 return os.path.dirname(file)
95 ret = os.path.isdir( path )
217 parent = os.path.dirname(path)
227 if os.path.isdir(dir):
229 os.mkdir(dir)
237 if os.path.exists(path):
243 if not os.path.isdir(path):
246 for root, dirs, files in os.walk(path):
250 if os.path.join(root,d) in excludes:
253 r, ext = os.path.splitext(f)
260 if not os.path.exists(path):
261 os.mkdir(path)
263 for root, dirs, files in os.walk(path, topdown=False):
268 os.remove(os.path.join(root, name))
270 os.rmdir(os.path.join(root, name))
274 if os.path.exists( path ):
311 if os.path.exists(path):
316 for root, dirs, files in os.walk(path):
327 if os.path.exists(dst):
360 if not os.path.exists(os.path.dirname(dst)):
378 os.remove(dst)