(inPath, outPath)
| 1413 | fp.close() |
| 1414 | |
| 1415 | def patchScript(inPath, outPath): |
| 1416 | major, minor = getVersionMajorMinor() |
| 1417 | data = fileContents(inPath) |
| 1418 | data = data.replace('@PYMAJOR@', str(major)) |
| 1419 | data = data.replace('@PYVER@', getVersion()) |
| 1420 | fp = open(outPath, 'w') |
| 1421 | fp.write(data) |
| 1422 | fp.close() |
| 1423 | os.chmod(outPath, STAT_0o755) |
| 1424 | |
| 1425 | |
| 1426 |
no test coverage detected
searching dependent graphs…