summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-03 21:38:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-03 21:38:21 +0300
commitf8152d4ff42a3f14d635eacb92ed3aa1fe236295 (patch)
treefc639f7939ab38bf3aa2e1c89cd3a84390e04b74
parent37e84f62d098907eff00be9b8714e2c7b9112dec (diff)
downloadevol-tools-f8152d4ff42a3f14d635eacb92ed3aa1fe236295.tar.gz
evol-tools-f8152d4ff42a3f14d635eacb92ed3aa1fe236295.tar.bz2
evol-tools-f8152d4ff42a3f14d635eacb92ed3aa1fe236295.tar.xz
evol-tools-f8152d4ff42a3f14d635eacb92ed3aa1fe236295.zip
testxml: add check for include in spite files.
-rwxr-xr-xtestxml/testxml.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 36d00f9..f49d347 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -494,6 +494,16 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, iserr):
try:
includes = dom.getElementsByTagName("include")
+ for include in includes:
+ try:
+ incfile = include.attributes["file"].value
+ file2 = os.path.abspath(parentDir + os.path.sep + spritesDir + incfile)
+ if not os.path.isfile(file2):
+ showMsgSprite(fileLoc, "include file not exists " + incfile, True)
+ except:
+ showMsgSprite(fileLoc, "bad include", iserr)
+
+
except:
includes = None