cwconfig.py
branchstable
changeset 1948 887ed691c635
parent 1802 d628defebc17
child 1977 606923dff11b
equal deleted inserted replaced
1947:8696403e5324 1948:887ed691c635
     9 
     9 
    10    Augments the default search path for cubes
    10    Augments the default search path for cubes
    11 
    11 
    12 """
    12 """
    13 __docformat__ = "restructuredtext en"
    13 __docformat__ = "restructuredtext en"
       
    14 _ = unicode
    14 
    15 
    15 import sys
    16 import sys
    16 import os
    17 import os
    17 import logging
    18 import logging
    18 from os.path import exists, join, expanduser, abspath, normpath, basename, isdir
    19 from os.path import exists, join, expanduser, abspath, normpath, basename, isdir
    25 from cubicweb import CW_SOFTWARE_ROOT, CW_MIGRATION_MAP, ConfigurationError
    26 from cubicweb import CW_SOFTWARE_ROOT, CW_MIGRATION_MAP, ConfigurationError
    26 from cubicweb.toolsutils import env_path, create_dir
    27 from cubicweb.toolsutils import env_path, create_dir
    27 
    28 
    28 CONFIGURATIONS = []
    29 CONFIGURATIONS = []
    29 
    30 
    30 _ = unicode
       
    31 
    31 
    32 class metaconfiguration(type):
    32 class metaconfiguration(type):
    33     """metaclass to automaticaly register configuration"""
    33     """metaclass to automaticaly register configuration"""
    34     def __new__(mcs, name, bases, classdict):
    34     def __new__(mcs, name, bases, classdict):
    35         cls = super(metaconfiguration, mcs).__new__(mcs, name, bases, classdict)
    35         cls = super(metaconfiguration, mcs).__new__(mcs, name, bases, classdict)