(self, filein ,fileout, vars)
| 27 | self.proc.kill() |
| 28 | |
| 29 | def replaceVariables(self, filein ,fileout, vars): |
| 30 | with open(filein, "rt") as fin: |
| 31 | with open(fileout, "wt") as fout: |
| 32 | for line in fin: |
| 33 | for k, v in vars.items(): |
| 34 | line = line.replace(k, v) |
| 35 | fout.write(line) |
| 36 | |
| 37 | def run_sample(self, filepath, variables): |
| 38 | inpath = os.path.join(cwd, "..", "..", "docs", "examples", filepath) |