浏览代码

增加默认服务地址

dukuisong 10 小时之前
父节点
当前提交
cef83f25bd
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      office_helper.py

+ 0 - 9
office_helper.py

@@ -46,19 +46,10 @@ def start_all_services(serve_client, work_path):
     logger.info('server running')
     while True:
         time.sleep(10)
-        a = 0
 
 
 if __name__ == "__main__":
 
-    if not os.path.exists('/opt/ProgramData/OfficeAssistant/config.json'):
-        logger.error('"config.json" is not find')
-        sys.exit(0)
-    #
-    with open('/opt/ProgramData/OfficeAssistant/config.json', 'r', encoding='utf-8') as f:
-    # with open(f'config.json', 'r', encoding='utf-8') as f:
-        args = json.load(f)
-    args['worker_path'] = args['worker_path'].replace('\\\\', '\\')
     if not (args.get('username') and args.get('password')):
         logger.error('The config is missing critical information')
         sys.exit(0)