From af22c9a79cb0e9188a5ccf6017d10742ba626a5f Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 16 Nov 2023 23:01:34 -0500 Subject: [PATCH] Remove --proxy for Github --- Client/cleanup.sh | 12 ++++++++++-- Client/client.py | 2 +- Client/worker.py | 2 -- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Client/cleanup.sh b/Client/cleanup.sh index c9ecf8d..a1b384b 100755 --- a/Client/cleanup.sh +++ b/Client/cleanup.sh @@ -1,4 +1,12 @@ -find -type f ! -name 'client.py' ! -name 'cleanup.sh' -exec rm {} + + +rm -rf Books/ rm -rf Engines/ rm -rf PGNS/ -rm -rf __pycache__/ \ No newline at end of file +rm -rf Networks/ +rm -rf __pycache__/ + +rm machine.txt +rm requirements.txt +rm worker.py +rm cutechess-ob +rm cutechess-ob.exe diff --git a/Client/client.py b/Client/client.py index 1bec46d..f0019e6 100644 --- a/Client/client.py +++ b/Client/client.py @@ -87,7 +87,6 @@ def parse_arguments(): p.add_argument('-I', '--identity' , help='Machine pseudonym' , required=False ) p.add_argument( '--syzygy' , help='Syzygy WDL' , required=False ) p.add_argument( '--fleet' , help='Fleet Mode' , action='store_true') - p.add_argument( '--proxy' , help='Github Proxy' , action='store_true') p.add_argument( '--clean' , help='Force New Client' , action='store_true') args = p.parse_args() @@ -138,6 +137,7 @@ def download_client_files(args): except: raise Exception('Unable to extract .zip archive contents') + if __name__ == '__main__': # Use client.py's path as the base pathway diff --git a/Client/worker.py b/Client/worker.py index cbb0dd7..c0429ac 100644 --- a/Client/worker.py +++ b/Client/worker.py @@ -100,7 +100,6 @@ class Configuration: self.identity = args.identity if args.identity else 'None' self.syzygy_path = args.syzygy if args.syzygy else None self.fleet = args.fleet if args.fleet else False - self.proxy = args.proxy if args.proxy else False def init_client(self): @@ -1090,7 +1089,6 @@ def download_opening_book(config): # Download file if we do not already have it if not os.path.isfile(book_path): - if config.proxy: book_source = 'https://ghproxy.com/' + book_source download_file(book_source, book_name + '.zip') unzip_delete_file(book_name + '.zip', 'Books/')