Skip to content

Commit

Permalink
fix:env err
Browse files Browse the repository at this point in the history
  • Loading branch information
MoYoez committed Oct 19, 2023
1 parent 723db2b commit efcb6ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gameInformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

# download gameinformation from

env = Environment()

filename = sys.argv[1].split("/")[-1]

Expand Down Expand Up @@ -67,6 +66,7 @@ def readSchema(self, schema: dict):


def run(path):
env = Environment()
with zipfile.ZipFile(path) as apk:
with apk.open("assets/bin/Data/globalgamemanagers.assets") as f:
env.load_file(f.read(), name="assets/bin/Data/globalgamemanagers.assets")
Expand Down Expand Up @@ -150,5 +150,7 @@ def run(path):
for data in response.iter_content(chunk_size=1024):
size = file.write(data)
bar.update(size)
run(filename)
os.delete(filename)


run(filename)
os.remove(filename)

0 comments on commit efcb6ca

Please sign in to comment.