(script)
| 65 | |
| 66 | @staticmethod |
| 67 | def clear_trainlog(script): |
| 68 | script = os.path.basename(script) |
| 69 | script = script[:-3] |
| 70 | if os.path.isdir(os.path.join("train_log", script)): |
| 71 | shutil.rmtree(os.path.join("train_log", script)) |
| 72 | |
| 73 | def assertSurvive(self, script, args=None, timeout=20): # noqa |
| 74 | cmd = "python{} {}".format(sys.version_info.major, script) |