def __init__(self):
     self.path_datapoint = find_path() + '/data' + '/datapoint.xlsx'
     self.path_login = find_path() + '/data' + "/login.xlsx"
     self.value_list = EX.load_data(self.path_datapoint,"Sheet3")
     self.token = EX.get_key_value(self.path_login, get_login_sheet_name(), "access_token")
     self.headers = {"Content-Type": "application/json", "Access-Token": self.token}
     self.host = get_host()
     self.port = ""
Exemple #2
0
 def __init__(self):
     self.path_login = find_path() + '/data' + "/login.xlsx"
     self.path_project = find_path() + '/data' + "/projects.xlsx"
     self.path_prd = find_path() + '/data' + "/products.xlsx"
     self.token = EX.get_key_value(self.path_login, get_login_sheet_name(), "access_token")
     self.headers = {"Content-Type": "application/json", "Access-Token": self.token}
     self.host = get_host()
     self.port = ""
Exemple #3
0
 def __init__(self):
     self.path_device = find_path() + '/data' + '/devices.xlsx'
     self.path_login = find_path() + '/data' + "/login.xlsx"
     self.path_product = find_path() + '/data' + "/products.xlsx"
     self.device_info = EX.load_data(self.path_device, "设备注册")
     self.pid_lists = EX.load_data_by_column(self.path_product, "自动导出产品信息",
                                             "pid")
     # self.pid_lists = EX.load_data_by_column(self.path_product, "Sheet2")
     self.token = EX.get_key_value(self.path_login, get_login_sheet_name(),
                                   "access_token")
     self.headers = {
         "Content-Type": "application/json",
         "Access-Token": self.token
     }
     self.host = get_host()
     self.port = ""