cwctl.py
changeset 151 343e7a18675d
parent 0 b97547f5f1fa
child 1015 b5fdad9208f8
child 1132 96752791c2b6
equal deleted inserted replaced
150:1190261a1f13 151:343e7a18675d
     8 from os.path import exists, join, isfile, isdir
     8 from os.path import exists, join, isfile, isdir
     9 
     9 
    10 from cubicweb import ConfigurationError, ExecutionError, BadCommandUsage
    10 from cubicweb import ConfigurationError, ExecutionError, BadCommandUsage
    11 from cubicweb.cwconfig import CubicWebConfiguration, CONFIGURATIONS
    11 from cubicweb.cwconfig import CubicWebConfiguration, CONFIGURATIONS
    12 from cubicweb.toolsutils import (Command, register_commands, main_run, 
    12 from cubicweb.toolsutils import (Command, register_commands, main_run, 
    13                               rm, create_dir, pop_arg, confirm)
    13                                  rm, create_dir, pop_arg, confirm)
    14     
    14     
    15 def wait_process_end(pid, maxtry=10, waittime=1):
    15 def wait_process_end(pid, maxtry=10, waittime=1):
    16     """wait for a process to actually die"""
    16     """wait for a process to actually die"""
    17     import signal
    17     import signal
    18     from time import sleep
    18     from time import sleep