2021.4 #19
@ -48,7 +48,7 @@ class LiveServerService(ServiceABC, FileSystemEventHandler):
|
||||
for proc in psutil.process_iter():
|
||||
with suppress(Exception):
|
||||
if proc.cmdline() == self._ls_thread.command:
|
||||
os.system(f'pkill -f {self._ls_thread.main}')
|
||||
proc.kill()
|
||||
|
||||
Console.write_line('Restart\n')
|
||||
while self._ls_thread.is_alive():
|
||||
|
@ -6,7 +6,7 @@ from cpl.console import Console
|
||||
class TestModel:
|
||||
|
||||
def __init__(self):
|
||||
Console.spinner('Waiting: ', self._wait, 3)
|
||||
Console.spinner('Waiting: ', self._wait, 10)
|
||||
option = Console.select('->', 'Select option: ', [
|
||||
'Option 1',
|
||||
'Option 2',
|
||||
|
Loading…
Reference in New Issue
Block a user