changeset 1762 | fcc406143e5b |
parent 1759 | 56e7f4a11046 |
child 1763 | bcc07ff2362c |
--- a/plcopen/plcopen.py Thu Aug 17 10:12:04 2017 +0300 +++ b/plcopen/plcopen.py Thu Aug 17 11:39:10 2017 +0300 @@ -154,7 +154,11 @@ PLCOpenParser = GenerateParserFromXSD(paths.AbsNeighbourFile(__file__, "tc6_xml_v201.xsd")) -PLCOpen_XPath = lambda xpath: etree.XPath(xpath, namespaces=PLCOpenParser.NSMAP) + + +def PLCOpen_XPath(xpath): + return etree.XPath(xpath, namespaces=PLCOpenParser.NSMAP) + LOAD_POU_PROJECT_TEMPLATE = """ <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201"