plcopen/structures.py
changeset 1333 7f264cc6e75d
parent 1330 96b242e4c59d
child 1390 0f4d32a033e0
--- a/plcopen/structures.py	Fri Sep 27 09:32:39 2013 +0900
+++ b/plcopen/structures.py	Sat Sep 28 15:59:50 2013 +0900
@@ -42,8 +42,10 @@
 
 ScriptDirectory = os.path.split(os.path.realpath(__file__))[0]
 
-StdBlockLibrary = LoadProject(os.path.join(ScriptDirectory, "Standard_Function_Blocks.xml"))
-AddnlBlockLibrary = LoadProject(os.path.join(ScriptDirectory, "Additional_Function_Blocks.xml"))
+StdBlockLibrary, error = LoadProject(
+    os.path.join(ScriptDirectory, "Standard_Function_Blocks.xml"))
+AddnlBlockLibrary, error = LoadProject(
+    os.path.join(ScriptDirectory, "Additional_Function_Blocks.xml"))
 
 StdBlockComments = {
     "SR": _("SR bistable\nThe SR bistable is a latch where the Set dominates."),