Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def create_builder(self, name, tmp=False):
pre = ''
if tmp: pre = 'tmp-'
d = self.get_builder_path(pre + name)
exists = os.path.exists(d)
util.mkdir(d)
yield Builder(self, d, exists)
if tmp: shutil.rmtree(d, ignore_errors=True)