Revision 3dabe5d2 kamaki/cli/command_shell.py
b/kamaki/cli/command_shell.py | ||
---|---|---|
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 | 34 |
from cmd import Cmd |
35 |
from new import instancemethod |
|
36 | 35 |
from os import popen |
37 | 36 |
from argparse import ArgumentParser |
38 | 37 |
from kamaki.cli import _update_parser, _exec_cmd |
39 |
from .errors import CLIError |
|
40 | 38 |
from .argument import _arguments |
41 |
from .utils import magenta, print_dict
|
|
39 |
from .utils import print_dict |
|
42 | 40 |
from sys import stdout |
43 | 41 |
from .history import History |
44 | 42 |
|
... | ... | |
75 | 73 |
@property |
76 | 74 |
def path(self): |
77 | 75 |
if self._cmd: |
78 |
return _cmd.path |
|
76 |
return self._cmd.path
|
|
79 | 77 |
return '' |
80 | 78 |
|
81 | 79 |
@classmethod |
... | ... | |
105 | 103 |
|
106 | 104 |
def _push_in_command(self, cmd_path): |
107 | 105 |
cmd = self.cmd_tree.get_command(cmd_path) |
108 |
_cmd_tree = self.cmd_tree
|
|
106 |
self.cmd_tree = self.cmd_tree
|
|
109 | 107 |
_history = self._history |
110 | 108 |
|
111 | 109 |
def do_method(self, line): |
Also available in: Unified diff