branch | stable |
changeset 6503 | 0fd079726606 |
parent 6502 | 1e1de0339a95 |
child 6507 | df2527c645cd |
child 6657 | 402bff898024 |
--- 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')):