cubicweb/test/unittest_cwconfig.py
branch3.26
changeset 12274 d2e9999861a5
parent 12273 9d08f89a3d85
child 12498 1ec5b23b92e7
--- a/cubicweb/test/unittest_cwconfig.py	Thu Feb 15 14:19:15 2018 +0100
+++ b/cubicweb/test/unittest_cwconfig.py	Thu Feb 15 14:20:11 2018 +0100
@@ -38,16 +38,6 @@
     CubicWebConfiguration, _expand_modname)
 
 
-def unabsolutize(path):
-    parts = path.split(os.sep)
-    for i, part in reversed(tuple(enumerate(parts))):
-        if part.startswith('cubicweb_'):
-            return os.sep.join([part[len('cubicweb_'):]] + parts[i + 1:])
-        if part.startswith('cubicweb') or part == 'legacy_cubes':
-            return os.sep.join(parts[i + 1:])
-    raise Exception('duh? %s' % path)
-
-
 def templibdir(func):
     """create a temporary directory and insert it in sys.path"""
     @functools.wraps(func)