def _ensure_basetemp(self, args):
        args = [str(x) for x in args]
        for x in args:
            if str(x).startswith('--basetemp'):
                #print ("basedtemp exists: %s" %(args,))
                break
        else:
            args.append("--basetemp=%s" % self.tmpdir.dirpath('basetemp'))
            #print ("added basetemp: %s" %(args,))
        return args
dataset/ETHPy150Open pytest-dev/pytest/_pytest/pytester.py/Testdir._ensure_basetemp/original