计算时附加电缆产品信息
This commit is contained in:
@@ -14,6 +14,8 @@ import sqlite3
|
||||
import sys
|
||||
import json
|
||||
|
||||
from Manager.product_manager import productManager
|
||||
|
||||
from x_ray_data_processor import processor
|
||||
|
||||
def import_sql_to_database(db_path, table_bame):
|
||||
@@ -44,18 +46,6 @@ def get_cpu_serial():
|
||||
return serial
|
||||
|
||||
|
||||
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)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = QCoreApplication(sys.argv)
|
||||
|
||||
Reference in New Issue
Block a user