Commit 4352e927 authored by Laurent Belcour's avatar Laurent Belcour

Minor modification, found out why my code wasn't working

parent b0441993
#!/usr/bin/python
from sys import argv
from xml.etree.ElementTree import parse
# Test if file argv[1] exists
# Open the file argv[1] and parse it
tree = parse(argv[1])
root = tree.getroot()
# Command lines creation
for child in root:
print child.tag, child.attrib
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment