chmod +X cutechess-ob; report downloading.
Tested with --clean
This commit is contained in:
1 parent
28d4f859c2
commit
3986e8f497
1 file changed
+5
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import requests
|
import requests
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
@@ -138,12 +139,16 @@ def download_client_files(args):
|
|||||||
except:
|
except:
|
||||||
raise Exception('Unable to extract .zip archive contents')
|
raise Exception('Unable to extract .zip archive contents')
|
||||||
|
|
||||||
|
if platform.system() != 'Windows':
|
||||||
|
os.system('chmod +x cutechess-ob')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
args = parse_arguments()
|
args = parse_arguments()
|
||||||
|
|
||||||
if args.clean or not has_worker():
|
if args.clean or not has_worker():
|
||||||
|
print ('[NOTE] Downloading Client...')
|
||||||
try_forever(download_client_files, [args], 'Failed to download Client files')
|
try_forever(download_client_files, [args], 'Failed to download Client files')
|
||||||
|
|
||||||
from client import BadVersionException
|
from client import BadVersionException
|
||||||
|
|||||||
Reference in new issue
Block a user