From dad1554ec26307427ea2dfdf8fe78fd69ccde6ae Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 28 Oct 2022 21:07:18 +0530 Subject: [PATCH] Fix a bug where config.bat would not get written properly --- ui/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/server.py b/ui/server.py index 74e94469..46c55018 100644 --- a/ui/server.py +++ b/ui/server.py @@ -113,7 +113,7 @@ def setConfig(config): print('Add the line "@set CUDA_VISIBLE_DEVICES=N" where N is the GPUs to use to config.bat') config_bat_path = os.path.join(CONFIG_DIR, 'config.bat') with open(config_bat_path, 'w', encoding='utf-8') as f: - f.write(f.write('\r\n'.join(config_bat))) + f.write('\r\n'.join(config_bat)) except Exception as e: print(traceback.format_exc())