diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-03 21:38:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-03 21:38:21 +0300 |
commit | f8152d4ff42a3f14d635eacb92ed3aa1fe236295 (patch) | |
tree | fc639f7939ab38bf3aa2e1c89cd3a84390e04b74 | |
parent | 37e84f62d098907eff00be9b8714e2c7b9112dec (diff) | |
download | evol-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-x | testxml/testxml.py | 10 |
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 |