# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1233221669 -3600 # Node ID 92d95b86263e7f1c14f608c8d7b5c91cbd692073 # Parent 87e76bce9452e903de5591a3513874a7c6f381a0 search in reverted order else in case of installed cubes (eg in cubicweb/cubes) we do not remove all expected parts diff -r 87e76bce9452 -r 92d95b86263e test/unittest_cwconfig.py --- a/test/unittest_cwconfig.py Thu Jan 29 10:09:42 2009 +0100 +++ b/test/unittest_cwconfig.py Thu Jan 29 10:34:29 2009 +0100 @@ -8,7 +8,7 @@ def unabsolutize(path): parts = path.split(os.sep) - for i, part in enumerate(parts): + for i, part in reversed(tuple(enumerate(parts))): if part in ('cubicweb', 'cubes', 'cubes'): return '/'.join(parts[i+1:]) raise Exception('duh? %s' % path)