Skip to content

Commit

Permalink
Update generateWSALinks.py to refer to the correct directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustardChef authored Oct 8, 2023
1 parent 66a1c0d commit 43245f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generateWSALinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __repr__(self):
conf = Prop(f.read())
user = conf.get('user_code')
print(f"Generating WSA download link: arch={arch} release_type={release_name}\n", flush=True)
with open(Path.cwd().parent / ("TestRepo/xml/GetCookie.xml"), "r") as f:
with open(Path.cwd().parent / ("WSAPackages/xml/GetCookie.xml"), "r") as f:
cookie_content = f.read().format(user)

out = session.post(
Expand All @@ -81,7 +81,7 @@ def __repr__(self):
doc = minidom.parseString(out.text)
cookie = doc.getElementsByTagName('EncryptedData')[0].firstChild.nodeValue

with open(Path.cwd().parent / "TestRepo/xml/WUIDRequest.xml", "r") as f:
with open(Path.cwd().parent / "WSAPackages/xml/WUIDRequest.xml", "r") as f:
cat_id_content = f.read().format(user, cookie, cat_id, release_type)

out = session.post(
Expand Down Expand Up @@ -118,7 +118,7 @@ def __repr__(self):
identities[fileinfo[0]] = ([update_identity.attributes['UpdateID'].value,
update_identity.attributes['RevisionNumber'].value], fileinfo[1])

with open(Path.cwd().parent / "TestRepo/xml/FE3FileUrl.xml", "r") as f:
with open(Path.cwd().parent / "WSAPackages/xml/FE3FileUrl.xml", "r") as f:
FE3_file_content = f.read()

if not download_dir.is_dir():
Expand Down

0 comments on commit 43245f1

Please sign in to comment.