Lines Matching refs:dir
576 for dir in args:
577 shutil.rmtree(dir, ignore_errors=True)
583 for dir in args:
584 os.makedirs(dir, exist_ok=True)
1686 def __init__(self, desc, num, dir, path, command, always_run=False): argument
1688 self.dir = dir
1729 self.dir = None
1738 def use_dir(self, dir): argument
1740 self.dir = dir
1757 def create_use_dir(self, dir): argument
1760 self.add_command_dir('rm', None, ['rm', '-rf', dir])
1761 self.add_command_dir('mkdir', None, ['mkdir', '-p', dir])
1762 self.use_dir(dir)
1764 def add_command_dir(self, desc, dir, command, always_run=False): argument
1766 cmd = Command(self.desc_txt(desc), len(self.cmdlist), dir, self.path,
1772 cmd = Command(self.desc_txt(desc), len(self.cmdlist), self.dir,
1776 def cleanup_dir(self, desc='cleanup', dir=None): argument
1780 if dir is None:
1781 dir = self.dir
1784 self.add_command_dir(desc, None, ['rm', '-rf', dir],
1808 if c.dir is None:
1809 dir = ''
1811 dir = c.dir
1816 prelims = [wrapper, prev_log, this_log, c.desc, dir, path]