Rushabh Mehta | 2f27367 | 2015-12-04 16:00:38 +0530 | [diff] [blame] | 1 | import os, re |
2 | |||||
3 | for basepath, folders, files in os.walk("."): | ||||
4 | for f in files: | ||||
5 | if f.endswith(".html") or f.endswith(".md"): | ||||
6 | with open(os.path.join(basepath, f), "r") as c: | ||||
7 | content = c.read() | ||||
8 | |||||
9 | for path in re.findall("""{{.?docs_base_url.?}}([^'"\)]*)""", content): | ||||
10 | print path |