summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-23 00:35:03 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-23 00:35:03 +0200
commit0c5dc4746e88e55f262add2506a01b8e6465c6aa (patch)
tree5d950016933e64919ced06cf19597d58cd86034a /testxml
parentc8bf9d41547010195dcaea5d7a36ad8518a80090 (diff)
downloadevol-tools-0c5dc4746e88e55f262add2506a01b8e6465c6aa.tar.gz
evol-tools-0c5dc4746e88e55f262add2506a01b8e6465c6aa.tar.bz2
evol-tools-0c5dc4746e88e55f262add2506a01b8e6465c6aa.tar.xz
evol-tools-0c5dc4746e88e55f262add2506a01b8e6465c6aa.zip
testxml: fix searching variants tag.
Diffstat (limited to 'testxml')
-rwxr-xr-xtestxml/testxml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 1269852..26a86cb 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -373,12 +373,12 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, iserr):
return
try:
- variants = dom.attributes["variants"].value
+ variants = dom.documentElement.attributes["variants"].value
except:
variants = 0
try:
- variant_offset = dom.attributes["variant_offset"].value
+ variant_offset = dom.documentElement.attributes["variant_offset"].value
except:
variant_offset = 0