Skip to content

Commit

Permalink
Fix download path
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgeh4w committed Dec 5, 2024
1 parent e848f8f commit 46fc152
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/example_ios_ali_vmp_sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def download_file(url: str, filepath: str):
path = Path(filepath)
path = Path(filepath).resolve()
if path.exists():
return
if not path.parent.exists():
Expand All @@ -47,7 +47,6 @@ def main():
os_type=OS_IOS,
rootfs_path=os.path.join(base_path, "rootfs/ios"),
enable_ui_kit=True,
logger=logger,
)
objc = ObjC(emu)

Expand Down
2 changes: 1 addition & 1 deletion examples/example_ios_bangbang.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def download_file(url: str, filepath: str):
path = Path(filepath)
path = Path(filepath).resolve()
if path.exists():
return
if not path.parent.exists():
Expand Down
2 changes: 1 addition & 1 deletion examples/example_ios_ijm.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def decorator(emu, *args):


def download_file(url: str, filepath: str):
path = Path(filepath)
path = Path(filepath).resolve()
if path.exists():
return
if not path.parent.exists():
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


def download_file(url: str, filepath: str):
path = Path(filepath)
path = Path(filepath).resolve()
if path.exists():
return
if not path.parent.exists():
Expand Down

0 comments on commit 46fc152

Please sign in to comment.