Lines Matching defs:path
78 import os.path as osp
187 def process_file(path, **kwargs):
188 if not osp.isfile(path):
190 raise IOError(ennro.ENOENT, "No such file", path)
192 verboseprint("Processing file %s...." % path)
196 shutil.copyfile(path, path + '.bak')
204 cpt_file = file(path, 'r')
262 cpt.write(file(path, 'w'))
299 path = osp.expandvars(osp.expanduser(args[0]))
302 if osp.isfile(path):
303 process_file(path, **vars(options))
305 elif osp.isdir(path):
306 cpt_file = osp.join(path, 'm5.cpt')
309 for root,dirs,files in os.walk(path):
319 print "Error: checkpoint file not found at in %s " % path,