heroes3-mapreader/mapread.py
2014-06-26 09:29:46 +02:00

11 lines
No EOL
264 B
Python
Executable file

# -*- coding: utf-8 -*-
import h3m
from lxml import etree
import sys
#from guess_language import guessLanguage
map = h3m.extract(sys.argv[1])
#print guessLanguage(map["map_desc"])
print etree.tostring(map,pretty_print=True,xml_declaration=True,encoding="UTF-8")