Skip to content

Commit e2f2d7a

Browse files
author
sreeder
committed
execute each line individually instead of as a group
1 parent a6df231 commit e2f2d7a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

odmtools/gui/pnlScript.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,15 @@ def runCommand(self, text):
172172
#restart recording
173173

174174
def OnExecute(self, e):
175-
self.runCommand(self.control.GetText())
175+
# self.runCommand(self.control.GetText())
176+
for l in self.control.GetText().split('\n'):
177+
self.runCommand(l)
178+
176179

177180
def OnExecuteSelection(self, e):
178-
self.runCommand(self.control.GetSelectedTextRaw())
181+
# self.runCommand(self.control.GetSelectedTextRaw())
182+
for l in self.control.GetText().split('\n'):
183+
self.runCommand(l)
179184

180185
def OnExecuteLine(self, e):
181186
text = self.control.GetSelectedTextRaw()

0 commit comments

Comments
 (0)