Files
xen/tools/check/check_python_xml
T
2006-12-14 14:13:18 +00:00

17 lines
257 B
Bash
Executable File

#!/bin/bash
# CHECK-INSTALL
function error {
echo
echo " *** Check for python-xml package FAILED"
exit 1
}
python -c '
import os.path, sys
for p in sys.path:
if os.path.exists(p + "/xml/dom/minidom.py"):
sys.exit(0)
sys.exit(1)
' || error