~termie/nova/remove_ioloop

Viewing all changes in revision 270.

  • Committer: Tarmac
  • Author(s): Soren Hansen
  • Date: 2010-09-08 17:18:35 UTC
  • mfrom: (265.1.1 nova-run-from-checkout)
  • Revision ID: hudson@openstack.org-20100908171835-nb4chivo7qhoa42c
It's annoying and confusing to have to set PYTHONPATH to point to your
development tree before you run any of the scripts.

If you're lucky, it just fails (because you don't have nova in the default
search path (i.e.  don't have them installed in /usr/lib/blah)) so that you can
fix it up.

If you're less lucky, you spend at least a couple of minutes wondering
why the cool changes you made to one of the nova modules don't take effect
until you realise it's because it's using the nova stuff in /usr/lib.

So, to save myself (and probably others) a bit of time, this patch adds
a snippet to each of the scripts in bin/ to detect this and set up the PYTHONPATH. 

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: