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 |