[packaging] Egg are not valid cubicweb prefix.
--- a/cwconfig.py Wed Oct 13 18:58:56 2010 +0200
+++ b/cwconfig.py Fri Oct 15 11:39:10 2010 +0200
@@ -201,7 +201,8 @@
old_prefix = None
if not isdir(start_path):
prefix = dirname(start_path)
- while not isdir(join(prefix, 'share', 'cubicweb')) and prefix != old_prefix:
+ while (not isdir(join(prefix, 'share', 'cubicweb'))
+ or prefix.endswith('.egg')) and prefix != old_prefix:
old_prefix = prefix
prefix = dirname(prefix)
if isdir(join(prefix, 'share', 'cubicweb')):