Commit 524dc2f8 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Fix top-level from top-level call bug

Idea: in pre: add top level commands as /<command>
slightly different registration
parent 834200da
......@@ -72,8 +72,8 @@ class Shell(Cmd):
def precmd(self, line):
if line.startswith('/'):
if self.prompt !=
cur_cmd_path = self.prompt.replace(' ', '_')[1:-2]
cur_cmd_path = self.prompt.replace(' ', '_')[1:-2]
if cur_cmd_path !=
cur_cmd = self.cmd_tree.get_command(cur_cmd_path)
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