plcopen/plcopen.py
changeset 2447 1c04a50dc7ff
parent 2439 f0a040f1de1b
child 2450 5024c19ca8f0
equal deleted inserted replaced
2446:922f0d84f869 2447:1c04a50dc7ff
   299             return tree, None
   299             return tree, None
   300 
   300 
   301         return tree, error
   301         return tree, error
   302 
   302 
   303     except Exception as e:
   303     except Exception as e:
   304         return None, e.message
   304         return None, str(e)
   305 
   305 
   306 
   306 
   307 def LoadProject(filepath):
   307 def LoadProject(filepath):
   308     project_file = open(filepath)
   308     project_file = open(filepath)
   309     project_xml = project_file.read()
   309     project_xml = project_file.read()