0

Validate texturepath exists

This commit is contained in:
Andrew Chin
2013-02-02 14:04:05 -05:00
parent 40becc9f59
commit 66ff7cbcb5

View File

@@ -165,7 +165,8 @@ def validateOptImg(opt):
def validateTexturePath(path): def validateTexturePath(path):
# Expand user dir in directories strings # Expand user dir in directories strings
path = expand_path(path) path = expand_path(path)
# TODO assert this path exists? if not os.path.exists(path):
raise ValidationException("%r does not exist" % path)
return path return path