Skip to content

Commit

Permalink
fix updater
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Jul 15, 2022
1 parent 23b7df0 commit 103d43e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from injector import inject_to_tab, get_tab

from os import getcwd, path
from os import getcwd, path, remove

from subprocess import call

Expand Down Expand Up @@ -92,6 +92,7 @@ async def do_update(self):
async with web.request("GET", download_url, ssl=helpers.get_ssl_context(), allow_redirects=True) as res:
total = int(res.headers.get('content-length', 0))

remove(path.join(getcwd(), "PluginLoader"))
with open(path.join(getcwd(), "PluginLoader"), "wb") as out:
progress = 0
raw = 0
Expand Down

0 comments on commit 103d43e

Please sign in to comment.