1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

init: fix bootimg_analyze step (MR 2358)

This commit is contained in:
Anri Dellal 2024-07-09 17:21:44 +03:00
parent ebef789f7c
commit 3d9607aa99
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -3,6 +3,7 @@
from pmb.core.context import get_context from pmb.core.context import get_context
from pmb.core.arch import Arch from pmb.core.arch import Arch
from pmb.helpers import logging from pmb.helpers import logging
from pathlib import Path
import os import os
import pmb.helpers.cli import pmb.helpers.cli
import pmb.helpers.run import pmb.helpers.run
@ -113,7 +114,7 @@ def ask_for_bootimg():
while True: while True:
response = pmb.helpers.cli.ask("Path", None, "", False) response = pmb.helpers.cli.ask("Path", None, "", False)
path = os.path.expanduser(response) path = Path(os.path.expanduser(response))
if not path: if not path:
return None return None
try: try: