Skip to content

Commit 0bf47fe

Browse files
authored
Merge pull request #57 from hellcp/pbw
Set bundle when providing a path to pbw
2 parents b86dfb6 + 9d0bebe commit 0bf47fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

appstore/pbw.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def __init__(self, pbw, platform):
5454
raise Exception("Bundle does not exist: " + pbw)
5555

5656
self.path = bundle_abs_path
57+
58+
with open(bundle_abs_path, "rb") as fh:
59+
bundle = io.BytesIO(fh.read())
5760
else:
5861
bundle = io.BytesIO(pbw)
5962

0 commit comments

Comments
 (0)