Commit 8c3cbe06 authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #575: Strenghten // handling

parent 3aabfbe0
...@@ -1227,7 +1227,9 @@ class pronsole(cmd.Cmd): ...@@ -1227,7 +1227,9 @@ class pronsole(cmd.Cmd):
sys.stdout.flush() sys.stdout.flush()
return True return True
elif l.startswith("//"): elif l.startswith("//"):
command = l.split(" ", 1)[1] command = l.split(" ", 1)
if len(command) > 1:
command = command[1]
self.log(_("Received command %s") % command) self.log(_("Received command %s") % command)
command = command.split(":") command = command.split(":")
if len(command) == 2 and command[0] == "action": if len(command) == 2 and command[0] == "action":
......
...@@ -1681,7 +1681,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1681,7 +1681,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
wx.CallAfter(self.addtexttolog, msg[1] + "\n") wx.CallAfter(self.addtexttolog, msg[1] + "\n")
return True return True
elif l.startswith("//"): elif l.startswith("//"):
command = l.split(" ", 1)[1] command = l.split(" ", 1)
if len(command) > 1:
command = command[1]
self.log(_("Received command %s") % command) self.log(_("Received command %s") % command)
command = command.split(":") command = command.split(":")
if len(command) == 2 and command[0] == "action": if len(command) == 2 and command[0] == "action":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment