Bernard Li wrote:
> Hi Andrea:
>
> I think I have a working implementation which will check to see if the
> system is SuSE, if so, add the BuildRequires to be python-xml,
> otherwise, use PyXML. I just wanted to make sure that PyXML is
> sufficient for what we need. Can you give me something to test on my
> Red Hat system?
>
> Thanks,
>
> Bernard
>
The attached script should be able to check if python xml support is ok
for bittorrent...
Cheers,
-Andrea
#!/usr/bin/env python
import sys
try:
import xml.dom
except:
print "error: cannot find xml.dom module"
sys.exit(1)
try:
import xml.dom.minidom
except:
print "error: cannot find xml.dom.minidom module"
sys.exit(1)
print "python xml support ok!"