Skip to content

Commit 29f287b

Browse files
Jefferson, Matthew (Matt)Jefferson, Matthew (Matt)
Jefferson, Matthew (Matt)
authored and
Jefferson, Matthew (Matt)
committed
Fixed a few more issue related to the subprocess switchover.
1 parent ccdf3a0 commit 29f287b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

avalanche.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ def convertEventString(self, tclstring):
12131213
foreach event [list " + tclstring + "] {\n \
12141214
append pythonlist \\\"$event\\\" , \n \
12151215
} \n\
1216-
return $pythonlist"
1216+
puts $pythonlist"
12171217
#tclresult = self.tcl.eval(tclcode)
12181218
# This step is what converts the Tcl string to a list.
12191219
#listofstrings = ast.literal_eval(tclresult)
@@ -1226,7 +1226,7 @@ def convertEventString(self, tclstring):
12261226
tclcode = "set pythondict \{;"
12271227
tclcode += "foreach element [list " + event + "] {"
12281228
tclcode += " append pythondict \"\\\"[lindex $element 0]\\\": \\\"[lindex $element 1]\\\", \""
1229-
tclcode += "}; append pythondict \}; return $pythondict"
1229+
tclcode += "}; append pythondict \}; puts $pythondict"
12301230

12311231
#tclresult = self.tcl.eval(tclcode)
12321232
#eventdict = ast.literal_eval(tclresult)
@@ -1238,7 +1238,7 @@ def convertEventString(self, tclstring):
12381238
tclcode = "set pythondict \{;"
12391239
tclcode += "foreach element [list " + eventdict["additional"] + "] {"
12401240
tclcode += " append pythondict \"\\\"[lindex $element 0]\\\": \\\"[lindex $element 1]\\\", \""
1241-
tclcode += "}; append pythondict \}; return $pythondict"
1241+
tclcode += "}; append pythondict \}; puts $pythondict"
12421242

12431243
#tclresult = self.tcl.eval(tclcode)
12441244
#eventdict["additional"] = ast.literal_eval(tclresult)

0 commit comments

Comments
 (0)