计算时附加电缆产品信息
This commit is contained in:
@@ -11,3 +11,16 @@ YSMODE = False
|
||||
COREECTMODE = True
|
||||
|
||||
|
||||
|
||||
def read_config():
|
||||
config = {}
|
||||
path = "/home/admin/.config/cpy/config.json"
|
||||
with open(path, "r") as f:
|
||||
config = json.load(f)
|
||||
return config
|
||||
return None
|
||||
|
||||
def save_config(config):
|
||||
path = "/home/admin/.config/cpy/config.json"
|
||||
with open(path, "w", encoding='utf-8') as f:
|
||||
json.dump(config, f, indent=4)
|
||||
Reference in New Issue
Block a user