12345678910111213141516171819202122232425262728293031 |
- import os
- import sys
- import re
- import io
- import xml.etree.ElementTree as ET
- import os.path
- tree = ET.parse('glife.qproj')
- root = tree.getroot()
- xml_locations = []
- os_locations = os.listdir("locations")
- print "Locations missing from ./locations/:"
- for location in root.iter('Location'):
- name = location.attrib['name'].replace("$","_")
- xml_locations.append(name)
-
- if name not in os_locations:
- print name
- print "Locations missing from .qproj:"
- for name in os_locations:
- if name not in xml_locations:
- print name
|