diff -r 8c98bad90b8d -r fcc406143e5b plcopen/plcopen.py --- 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 = """