[MetaTools] change builtTableList.py to use README.rst instead of *.md

This commit is contained in:
Cosimo Lupo 2017-01-18 16:15:25 +00:00
parent 025137c3ac
commit 91644142e2
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419

View File

@ -11,7 +11,7 @@ fontToolsDir = os.path.dirname(os.path.dirname(os.path.join(os.getcwd(), sys.arg
fontToolsDir= os.path.normpath(fontToolsDir) fontToolsDir= os.path.normpath(fontToolsDir)
tablesDir = os.path.join(fontToolsDir, tablesDir = os.path.join(fontToolsDir,
"Lib", "fontTools", "ttLib", "tables") "Lib", "fontTools", "ttLib", "tables")
docFile = os.path.join(fontToolsDir, "README.md") docFile = os.path.join(fontToolsDir, "README.rst")
names = glob.glob1(tablesDir, "*.py") names = glob.glob1(tablesDir, "*.py")
@ -57,8 +57,8 @@ if __name__ == "__main__":
file.close() file.close()
begin = "<!-- begin table list -->" begin = ".. begin table list\n.. code::\n"
end = "<!-- end table list -->" end = ".. end table list"
doc = open(docFile).read() doc = open(docFile).read()
beginPos = doc.find(begin) beginPos = doc.find(begin)
assert beginPos > 0 assert beginPos > 0