# HG changeset patch # User Pierre-Yves David # Date 1287135550 -7200 # Node ID 0fd07972660669fcd612e9341f7961ff0fc88565 # Parent 1e1de0339a9561e78d32c3726670a4b132de9937 [packaging] Egg are not valid cubicweb prefix. diff -r 1e1de0339a95 -r 0fd079726606 cwconfig.py --- 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')):