Add automated script for link on readme

This commit is contained in:
iota97 2020-07-06 12:02:10 +02:00
parent 11e5f8653b
commit c76a72ba93

10
link_readme.py Executable file
View file

@ -0,0 +1,10 @@
#!/bin/python
import re
f = open("README.md", "r+")
cont = f.read()
updated = re.sub(r"([^[])#(\d+)", r"\1[#\2](https://github.com/hrydgard/ppsspp/issues/\2)", cont)
f.seek(0)
f.write(updated)
f.truncate()
f.close()