|
@@ -51,12 +51,12 @@ def start_all_services(serve_client, work_path):
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
- # if not os.path.exists(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json'):
|
|
|
- # logger.error('"config.json" is not find')
|
|
|
- # sys.exit(0)
|
|
|
- #
|
|
|
- # with open(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json', 'r', encoding='utf-8') as f:
|
|
|
- with open(f'config.json', 'r', encoding='utf-8') as f:
|
|
|
+ if not os.path.exists(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json'):
|
|
|
+ logger.error('"config.json" is not find')
|
|
|
+ sys.exit(0)
|
|
|
+
|
|
|
+ with open(f'{dl_code}:\\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')):
|