toolsutils.py
changeset 3163 edfe43ceaa35
parent 2790 968108e16066
parent 3115 29262ba01464
child 4252 6c4f109c2b03
equal deleted inserted replaced
3090:8184bec7414d 3163:edfe43ceaa35
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
     9 
     9 
    10 # XXX move most of this in logilab.common (shellutils ?)
    10 # XXX move most of this in logilab.common (shellutils ?)
    11 
    11 
    12 import os, sys
    12 import os, sys
    13 from os import listdir, makedirs, symlink, environ, chmod, walk, remove
    13 from os import listdir, makedirs, environ, chmod, walk, remove
    14 from os.path import exists, join, abspath, normpath
    14 from os.path import exists, join, abspath, normpath
       
    15 
       
    16 try:
       
    17     from os import symlink
       
    18 except ImportError:
       
    19     def symlink(*args):
       
    20         raise NotImplementedError
    15 
    21 
    16 from logilab.common.clcommands import Command as BaseCommand, \
    22 from logilab.common.clcommands import Command as BaseCommand, \
    17      main_run as base_main_run
    23      main_run as base_main_run
    18 from logilab.common.compat import any
    24 from logilab.common.compat import any
    19 from logilab.common.shellutils import ASK
    25 from logilab.common.shellutils import ASK