moksha/hub/hub.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit 7d91feb7143942501a30c0ddcfccbb390d9dcccb Author: Luke Macken lmacken@redhat.com Date: Sat Dec 12 15:09:48 2009 -0500
Add the current directory to the path in the hub.
This should hopefully have pkg_resources look in the current directory for un-installed egg-info metadata
diff --git a/moksha/hub/hub.py b/moksha/hub/hub.py index db14dc3..4788c18 100644 --- a/moksha/hub/hub.py +++ b/moksha/hub/hub.py @@ -16,13 +16,20 @@ # # Authors: Luke Macken lmacken@redhat.com
-from moksha.hub.reactor import reactor
+import os import sys + +# Look in the current directory for egg-info +if os.getcwd() not in sys.path: + sys.path.insert(0, os.getcwd()) + import signal import pkg_resources import logging
+from moksha.hub.reactor import reactor + from tg import config from orbited import json from paste.deploy import appconfig
moksha-commits@lists.fedorahosted.org