Show More
@@ -1,22 +1,22 b'' | |||||
1 | import pydb |
|
1 | import pydb | |
2 | import IPython.ipapi |
|
2 | import IPython.ipapi | |
3 | from IPython.genutils import arg_split |
|
3 | from IPython.genutils import arg_split | |
4 | ip = IPython.ipapi.get() |
|
4 | ip = IPython.ipapi.get() | |
5 |
|
5 | |||
6 | def call_pydb(self, args): |
|
6 | def call_pydb(self, args): | |
7 | argl = arg_split(args) |
|
7 | argl = arg_split(args) | |
8 | print argl |
|
8 | # print argl # dbg | |
9 | if ip.IP.has_readline: |
|
9 | if ip.IP.has_readline: | |
10 | ip.IP.savehist() |
|
10 | ip.IP.savehist() | |
11 | try: |
|
11 | try: | |
12 |
pydb.runl(*arg |
|
12 | pydb.runl(*argl) | |
13 | finally: |
|
13 | finally: | |
14 |
|
14 | |||
15 | if ip.IP.has_readline: |
|
15 | if ip.IP.has_readline: | |
16 | ip.IP.readline.read_history_file(self.shell.histfile) |
|
16 | ip.IP.readline.read_history_file(self.shell.histfile) | |
17 |
|
17 | |||
18 | ip.expose_magic("pydb",call_pydb) |
|
18 | ip.expose_magic("pydb",call_pydb) | |
19 |
|
19 | |||
20 |
|
20 | |||
21 |
|
21 | |||
22 | No newline at end of file |
|
22 |
General Comments 0
You need to be logged in to leave comments.
Login now