Skip to content

Commit f27bfae

Browse files
committed
fix: restore localpibox imports in support scripts
sed command earlier corrupted Python module imports by replacing 'localpibox' with 'lpb-stack'. Fixed imports in all Python files.
1 parent 709144c commit f27bfae

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

support/browser-state-cleanup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
sys.path.insert(0, str(_candidate))
2727
break
2828

29-
from lpb-stack.cli import add_common_args, console_from_args, install_sigpipe_handler # noqa: E402
30-
from lpb-stack.log import Console # noqa: E402
31-
from lpb-stack.run import run_cmd # noqa: E402
29+
from localpibox.cli import add_common_args, console_from_args, install_sigpipe_handler # noqa: E402
30+
from localpibox.log import Console # noqa: E402
31+
from localpibox.run import run_cmd # noqa: E402
3232

3333

3434
def session_dirs(state_dir: str | Path) -> list[Path]:

support/build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
ROOT = Path(__file__).resolve().parent.parent
2525
sys.path.insert(0, str(ROOT / "scripts"))
2626

27-
from lpb-stack import log # noqa: E402
28-
from lpb-stack.cli import install_sigpipe_handler # noqa: E402
29-
from lpb-stack.env import load_env_chain # noqa: E402
30-
from lpb-stack.run import run_cmd, which # noqa: E402
27+
from localpibox import log # noqa: E402
28+
from localpibox.cli import install_sigpipe_handler # noqa: E402
29+
from localpibox.env import load_env_chain # noqa: E402
30+
from localpibox.run import run_cmd, which # noqa: E402
3131

3232
REQUIRED_STACK_VARS = [
3333
"LPB_IMAGE_CLI",

support/install-browser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
sys.path.insert(0, str(_c))
2929
break
3030

31-
from lpb-stack.cli import add_common_args, console_from_args, install_sigpipe_handler # noqa: E402
32-
from lpb-stack.log import Console # noqa: E402
33-
from lpb-stack.run import is_container, run_cmd, which # noqa: E402
31+
from localpibox.cli import add_common_args, console_from_args, install_sigpipe_handler # noqa: E402
32+
from localpibox.log import Console # noqa: E402
33+
from localpibox.run import is_container, run_cmd, which # noqa: E402
3434
import subprocess # noqa: E402
3535

3636
CHROME_BASE = Path("/home/lpb/.agent-browser/browsers")

support/install-openspec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
sys.path.insert(0, str(_c))
2828
break
2929

30-
from lpb-stack.cli import add_common_args, console_from_args, install_sigpipe_handler # noqa: E402
31-
from lpb-stack.log import Console # noqa: E402
32-
from lpb-stack.run import run_cmd, which # noqa: E402
30+
from localpibox.cli import add_common_args, console_from_args, install_sigpipe_handler # noqa: E402
31+
from localpibox.log import Console # noqa: E402
32+
from localpibox.run import run_cmd, which # noqa: E402
3333
import subprocess # noqa: E402
3434

3535
OPENSPEC_PKG = "@fission-ai/openspec"

support/lpb-config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
sys.path.insert(0, str(_c))
4343
break
4444

45-
from lpb-stack.cli import confirm, install_sigpipe_handler # noqa: E402
46-
from lpb-stack.env import parse_env_file # noqa: E402
47-
from lpb-stack.log import Console # noqa: E402
48-
from lpb-stack.run import run_cmd # noqa: E402
45+
from localpibox.cli import confirm, install_sigpipe_handler # noqa: E402
46+
from localpibox.env import parse_env_file # noqa: E402
47+
from localpibox.log import Console # noqa: E402
48+
from localpibox.run import run_cmd # noqa: E402
4949

5050
# ─── Constants ──────────────────────────────────────────────────────────────
5151

support/validate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
sys.path.insert(0, str(_c))
2828
break
2929

30-
from lpb-stack.cli import install_sigpipe_handler # noqa: E402
31-
from lpb-stack.log import Console # noqa: E402
32-
from lpb-stack.run import run_cmd, which # noqa: E402
30+
from localpibox.cli import install_sigpipe_handler # noqa: E402
31+
from localpibox.log import Console # noqa: E402
32+
from localpibox.run import run_cmd, which # noqa: E402
3333

3434
EXT_BASE = Path("/home/lpb/.pi/agent/git")
3535
CHECK_REPOS = ("lpb-stack/lemonade-pi-plugin", "lpb-stack/lpb-memory")

0 commit comments

Comments
 (0)