mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 11:14:56 -05:00
Update settings.py
Making it possible to auto-create a hwparam.json if not exists.
This commit is contained in:
parent
7cf612fb1a
commit
05f71327c4
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ class hwparam:
|
|||
if "meid" in self.paramsetting:
|
||||
if meid!=self.paramsetting["meid"]:
|
||||
self.paramsetting = {}
|
||||
else:
|
||||
self.paramsetting = {};
|
||||
self.paramsetting["meid"] = meid;
|
||||
open(self.paramfile, "w").write(json.dumps(self.paramsetting))
|
||||
|
||||
def loadsetting(self,key:str):
|
||||
if self.paramsetting is not None:
|
||||
|
|
Loading…
Reference in a new issue