cwctl.py
changeset 9371 1348202527a6
parent 9340 b1e933b0e850
child 9372 e87a808a4c32
equal deleted inserted replaced
9370:15c695d8d865 9371:1348202527a6
    46 from cubicweb.utils import support_args
    46 from cubicweb.utils import support_args
    47 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg, CWDEV, CONFIGURATIONS
    47 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg, CWDEV, CONFIGURATIONS
    48 from cubicweb.toolsutils import Command, rm, create_dir, underline_title
    48 from cubicweb.toolsutils import Command, rm, create_dir, underline_title
    49 from cubicweb.__pkginfo__ import version
    49 from cubicweb.__pkginfo__ import version
    50 
    50 
    51 if support_args(CommandLine, 'check_duplicated_command'):
    51 # don't check duplicated commands, it occurs when reloading site_cubicweb
    52     # don't check duplicated commands, it occurs when reloading site_cubicweb
    52 CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
    53     CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
    53                     version=version, check_duplicated_command=False)
    54                         version=version, check_duplicated_command=False)
       
    55 else:
       
    56     CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
       
    57                         version=version)
       
    58 
    54 
    59 def wait_process_end(pid, maxtry=10, waittime=1):
    55 def wait_process_end(pid, maxtry=10, waittime=1):
    60     """wait for a process to actually die"""
    56     """wait for a process to actually die"""
    61     import signal
    57     import signal
    62     from time import sleep
    58     from time import sleep