Python - 配置iPython直接在命令行调试Odoo(openerp)代码
先看效果
安装ipython
1 | pip install ipython |
创建ipython配置文件
1 | ipython profile create apple |
*列出所有配置文件
1 | ipython profile list |
*查看配置文件位置
1 | ipython profile locate apple |
创建预加载OE配置文件
1 | vim ~/.ipython/profile_apple/startup/00-load-oe.py |
内容如下:
1 |
|
启动ipython
1 | ipython --profile=apple |
执行效果
1 | Python 3.7.3 (default, Mar 27 2019, 16:54:48) |