title: Odoo - how to use it interactively in python interpreter?
body: <p>I read here that it might be possible to use python interpreter to access Odoo and test things interactively (<a href="https://www.odoo.com/forum/help-1/question/how-to-get-a-python-shell-with-the-odoo-environment-54096" rel="nofollow">https://www.odoo.com/forum/help-1/question/how-to-get-a-python-shell-with-the-odoo-environment-54096</a>), but doing this in terminal:</p>
  
  <p><code>ipython</code></p>
  
  <pre><code>import sys
  import openerp
  sys.argv = ['', '--addons-path=~/my-path/addons', '--xmlrpc-port=8067', '--log-level=debug', '-d test',]
  openerp.cli.main()
  </code></pre>
  
  <p>it starts Odoo server, but I can't write anything in that terminal tab to use it interactively. If for example I write anything like <code>print 'abc'</code>, I don't get any output. Am I missing something here?</p>