Changeset 10753 for ossiedev/trunk/tools/WaveDev/wavedev/importNode.py
- Timestamp:
- 06/20/11 11:55:52 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/tools/WaveDev/wavedev/importNode.py
r9580 r10753 94 94 break 95 95 pathSPD = parent.installPath + "dev/" + local_SPD 96 97 96 if not os.path.exists(pathSPD): 98 97 errorMsg(parent, "Warning! Could not find " + pathSPD + ".\nCannot import node " + Nname) … … 107 106 108 107 doc_scd = xml.dom.minidom.parse(pathSCD) 109 108 109 #The new component is first created as an executable 110 #device but that may not be true 111 #grab the componenttype node from the scd file... 112 typeNode = doc_scd.getElementsByTagName("componenttype") 113 #... the pull out the actual value... 114 compType = typeNode[0].firstChild.toxml() 115 #... and assign it to the component 116 newComp.type = compType 117 110 118 # Get the Ports 111 119 portsNodes = doc_scd.getElementsByTagName("ports")