[FIX] script todo: « Tester une VM » — navigateur CLI via os.system (vrai TTY)
Le navigateur ne faisait qu'imprimer sans réagir au clavier : la commande passait par exec_command_live, qui exécute avec stdout=PIPE (et sans stdin terminal) -> un navigateur texte (w3m/elinks) n'a pas de TTY interactif. On lance désormais le navigateur avec os.system(), qui hérite du vrai terminal (stdin/stdout/stderr) — même principe que le suivi d'installation (TUI) qui l'appelle dans self.suspend(). Ici, en CLI simple, aucun suspend n'est nécessaire. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
babe69dbf7
commit
14fa807221
1 changed files with 4 additions and 3 deletions
|
|
@ -1372,9 +1372,10 @@ class TODO:
|
|||
return
|
||||
url = f"http://{ip}:8069"
|
||||
print(f"→ {browser} {url}")
|
||||
rc = self.execute.exec_command_live(
|
||||
f"{browser} {shlex.quote(url)}", source_erplibre=False
|
||||
)
|
||||
# os.system (et NON exec_command_live) : un navigateur texte a besoin
|
||||
# du VRAI TTY interactif. exec_command_live redirige la sortie dans un
|
||||
# tube -> le navigateur ne fait qu'imprimer sans réagir au clavier.
|
||||
rc = os.system(f"{browser} {shlex.quote(url)}")
|
||||
if rc != 0:
|
||||
msg = t(
|
||||
"Page may not have loaded: Odoo not started on :8069, "
|
||||
|
|
|
|||
Loading…
Reference in a new issue