Lines Matching refs:dir
38 def cleandir(dir):
39 for root, dirs, files in os.walk(dir, False):
74 def __init__(self, dir):
75 self.dir = dir
78 return joinpath(self.dir, filename)
81 if os.path.exists(self.dir):
82 if not os.path.isdir(self.dir):
83 sys.exit('%s is not a directory. Cannot build job' % self.dir)
85 os.mkdir(self.dir)
88 return os.path.isdir(self.dir)
91 cleandir(self.dir)
142 return self.dir