mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-09-09 14:04:34 +00:00
Use pathlib instead of os.path
This commit is contained in:
parent
08fbb8d9dc
commit
9968805324
7 changed files with 14 additions and 17 deletions
|
@ -25,7 +25,6 @@ from xml.dom import minidom
|
|||
import html
|
||||
import warnings
|
||||
import re
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
warnings.filterwarnings("ignore")
|
||||
|
@ -81,8 +80,8 @@ for node in doc.getElementsByTagName('SecuredFragment'):
|
|||
with open(Path.cwd().parent / "xml/FE3FileUrl.xml", "r") as f:
|
||||
file_content = f.read()
|
||||
|
||||
if not os.path.exists(download_dir):
|
||||
os.makedirs(download_dir)
|
||||
if not download_dir.is_dir():
|
||||
download_dir.mkdir()
|
||||
tmpdownlist = open(download_dir/tempScript, 'a')
|
||||
for i, v, f in identities:
|
||||
if re.match(f"Microsoft\.UI\.Xaml\..*_{arch}_.*\.appx", f):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue