Commit #7: eventHandler and event queue are unique between two apps now. (Similar...
[smartthings-infrastructure.git] / Runner.py
index 2d32581177891961f8996684c3492959ea20fa09..0514c39842c402457c87facad62671ec51ada089 100644 (file)
--- a/Runner.py
+++ b/Runner.py
@@ -42,6 +42,10 @@ Out.write("import Location.Phrase\n")
 Out.write("import appTouch.Touched\n")
 Out.write("import Event.Event\n")
 Out.write("\n")
+Out.write("//Global eventHandler\n")
+for line in eventHandler:
+       Out.write(line)
+Out.write("\n")
 Out.write("//GlobalVariables for both Apps\n")
 for line in GlobalVariablesBothApps:
        Out.write(line)
@@ -84,8 +88,6 @@ for line in sendNotificationToContacts:
        Out.write("\t"+line)
 for line in sendSms:
        Out.write("\t"+line)
-for line in eventHandler:
-       Out.write("\t"+line)
 Out.write("\n")
 Start = 0
 for line in App1:
@@ -145,8 +147,6 @@ for line in sendNotificationToContacts:
        Out.write("\t"+line)
 for line in sendSms:
        Out.write("\t"+line)
-for line in eventHandler:
-       Out.write("\t"+line)
 Out.write("\n")
 Start = 0
 for line in App2: