toolsutils.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 541 0d75cfe50f83
child 1138 22f634977c95
equal deleted inserted replaced
1131:544609e83317 1132:96752791c2b6
     1 """some utilities for cubicweb tools
     1 """some utilities for cubicweb tools
     2 
     2 
     3 :organization: Logilab
     3 :organization: Logilab
     4 :copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 """
     6 """
     7 __docformat__ = "restructuredtext en"
     7 __docformat__ = "restructuredtext en"
     8 
     8 
     9 import os, sys
     9 import os, sys
    10 from os import listdir, makedirs, symlink, environ, chmod, walk, remove
    10 from os import listdir, makedirs, symlink, environ, chmod, walk, remove
    11 from os.path import exists, join, abspath, normpath
    11 from os.path import exists, join, abspath, normpath
    12 
    12 
    13 from logilab.common.clcommands import Command as BaseCommand, \
    13 from logilab.common.clcommands import Command as BaseCommand, \
    14      main_run as base_main_run, register_commands, pop_arg, cmd_run
    14      main_run as base_main_run
    15 from logilab.common.compat import any
    15 from logilab.common.compat import any
    16 
    16 
    17 from cubicweb import warning
    17 from cubicweb import warning
    18 from cubicweb import ConfigurationError, ExecutionError
    18 from cubicweb import ConfigurationError, ExecutionError
    19 
    19