Skip to content

Commit 761ed53

Browse files
committed
Fix sideloading paths to proper pathlib Paths
1 parent 2d10dd4 commit 761ed53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openandroidinstaller/tooling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def adb_twrp_copy_partitions(bin_path: Path, config_path: Path):
118118
"adb",
119119
[
120120
"sideload",
121-
str(config_path.parent) + "/copy-partitions-20220613-signed.zip",
121+
f"{config_path.parent.joinpath(Path('copy-partitions-20220613-signed.zip'))}",
122122
],
123123
bin_path,
124124
):
@@ -192,7 +192,7 @@ def adb_twrp_wipe_and_install(bin_path: Path, target: str, config_path: Path) ->
192192
# TODO: if this fails, a fix can be to just sideload something and then adb reboot
193193
for line in run_command(
194194
"adb",
195-
["sideload", str(config_path.parent) + "/helper.txt"],
195+
["sideload", f"{config_path.parent.joinpath(Path('helper.txt'))}"],
196196
bin_path,
197197
):
198198
yield line

0 commit comments

Comments
 (0)