Lines Matching refs:dir
40 def cleandir(dir):
41 for root, dirs, files in os.walk(dir, False):
76 def __init__(self, dir):
77 self.dir = dir
80 return joinpath(self.dir, filename)
83 if os.path.exists(self.dir):
84 if not os.path.isdir(self.dir):
85 sys.exit('%s is not a directory. Cannot build job' % self.dir)
87 os.mkdir(self.dir)
90 return os.path.isdir(self.dir)
93 cleandir(self.dir)
144 return self.dir