Reformat and clean up code, fix typos
This commit is contained in:
+4
-3
@@ -1,11 +1,12 @@
|
||||
import configparser
|
||||
import glob
|
||||
import hashlib
|
||||
import os
|
||||
import shutil
|
||||
import zipfile
|
||||
import hashlib
|
||||
from tools.helper import download_file, get_download_dir, host
|
||||
|
||||
from tools import container
|
||||
from tools.helper import download_file, get_download_dir, host
|
||||
from tools.logger import Logger
|
||||
|
||||
|
||||
@@ -74,7 +75,7 @@ class General:
|
||||
if not os.path.exists(bin_dir):
|
||||
os.makedirs(bin_dir)
|
||||
shutil.copy(os.path.join(os.path.join(os.path.dirname(__file__), "..", "bin",
|
||||
self.arch[0], "resetprop")), bin_dir)
|
||||
self.arch[0], "resetprop")), bin_dir)
|
||||
os.chmod(os.path.join(bin_dir, "resetprop"), 0o755)
|
||||
if not os.path.isfile(os.path.join(bin_dir, "resetprop.sh")):
|
||||
with open(os.path.join(bin_dir, "resetprop.sh"), "w") as f:
|
||||
|
||||
Reference in New Issue
Block a user