فهرست منبع

增加默认服务地址

dukuisong 18 ساعت پیش
والد
کامیت
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)