ctcci: hotfix

This commit is contained in:
ave 2020-05-28 15:56:38 +03:00
parent 30c8b07077
commit b21564104e
Signed by untrusted user: a
GPG key ID: 398DD7BD03276F6D
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,6 @@
import os import os
import sys import sys
import shutil import shutil
import requests
import json import json
import subprocess import subprocess
from ctcconfig import * from ctcconfig import *
@ -39,7 +38,8 @@ os.environ["DISTOK_EXTRACTED_DISCORD_PATH"] = WORK_APK_PATH
os.makedirs(WORK_FOLDER, exist_ok=True) os.makedirs(WORK_FOLDER, exist_ok=True)
with open(os.path.join(REPO_FOLDER, "patchport-state.json")) as f: with open(os.path.join(REPO_FOLDER, "patchport-state.json")) as f:
VERSION = f["versioncode"] STATE = json.load(f)
VERSION = STATE["versioncode"]
BASE_APK_PATH = os.path.join(WORK_FOLDER, f"discord-base-{VERSION}") BASE_APK_PATH = os.path.join(WORK_FOLDER, f"discord-base-{VERSION}")

View file

@ -1 +0,0 @@
requests