Browse Source

[brouillon] Je sais récupérer la liste des chansons utilisées

remotes/origin/next
Louis 12 years ago
parent
commit
feebef8d2e
  1. 16
      parse.py

16
parse.py

@ -0,0 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
FILENAME = "naheulbeuk.tex"
import plasTeX
from plasTeX.TeX import TeX
doc = TeX(file = FILENAME).parse()
language_list = set()
for node in doc.allChildNodes:
if node.nodeName == "selectlanguage":
language_list.add(node.argSource)
print language_list
Loading…
Cancel
Save