Skip to content
Snippets Groups Projects
Commit bb442609 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

enter xml file name to use through command line

parent 87c95d59
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
import sys
import xml.etree.ElementTree as ET
......@@ -50,6 +51,13 @@ def parseDirectory(directory, cwd, stripDescriptionPrefix) :
parseDirectory(elem, cwd+"/"+elem.attrib["name"], len(dirdescription)+1)
if len(sys.argv) != 2 :
print("Usage: variableHouseholdToWikiTable.py <xml_file_name>")
sys.exit(1)
filename=sys.argv[1]
print("^ PV name ^ Type ^ Unit ^ Description ^")
tree = ET.parse("llrfctrl.xml")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment