From 3986e8f49750da2651ed77c6e79e9e31660412de Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 16 Nov 2023 21:03:09 -0500 Subject: [PATCH] chmod +X cutechess-ob; report downloading. Tested with --clean --- Client/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Client/client.py b/Client/client.py index 4f174c0..433021f 100644 --- a/Client/client.py +++ b/Client/client.py @@ -20,6 +20,7 @@ import argparse import os +import platform import requests import shutil import tempfile @@ -138,12 +139,16 @@ def download_client_files(args): except: raise Exception('Unable to extract .zip archive contents') + if platform.system() != 'Windows': + os.system('chmod +x cutechess-ob') + if __name__ == '__main__': args = parse_arguments() if args.clean or not has_worker(): + print ('[NOTE] Downloading Client...') try_forever(download_client_files, [args], 'Failed to download Client files') from client import BadVersionException