Remove --proxy for Github
This commit is contained in:
1 parent
3fa1e2b984
commit
af22c9a79c
3 files changed
+11
-5
No files matched your search
+10
-2
@@ -1,4 +1,12 @@
|
|||||||
find -type f ! -name 'client.py' ! -name 'cleanup.sh' -exec rm {} +
|
|
||||||
|
rm -rf Books/
|
||||||
rm -rf Engines/
|
rm -rf Engines/
|
||||||
rm -rf PGNS/
|
rm -rf PGNS/
|
||||||
rm -rf __pycache__/
|
rm -rf Networks/
|
||||||
|
rm -rf __pycache__/
|
||||||
|
|
||||||
|
rm machine.txt
|
||||||
|
rm requirements.txt
|
||||||
|
rm worker.py
|
||||||
|
rm cutechess-ob
|
||||||
|
rm cutechess-ob.exe
|
||||||
+1
-1
@@ -87,7 +87,6 @@ def parse_arguments():
|
|||||||
p.add_argument('-I', '--identity' , help='Machine pseudonym' , required=False )
|
p.add_argument('-I', '--identity' , help='Machine pseudonym' , required=False )
|
||||||
p.add_argument( '--syzygy' , help='Syzygy WDL' , required=False )
|
p.add_argument( '--syzygy' , help='Syzygy WDL' , required=False )
|
||||||
p.add_argument( '--fleet' , help='Fleet Mode' , action='store_true')
|
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')
|
p.add_argument( '--clean' , help='Force New Client' , action='store_true')
|
||||||
|
|
||||||
args = p.parse_args()
|
args = p.parse_args()
|
||||||
@@ -138,6 +137,7 @@ def download_client_files(args):
|
|||||||
except:
|
except:
|
||||||
raise Exception('Unable to extract .zip archive contents')
|
raise Exception('Unable to extract .zip archive contents')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
# Use client.py's path as the base pathway
|
# Use client.py's path as the base pathway
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ class Configuration:
|
|||||||
self.identity = args.identity if args.identity else 'None'
|
self.identity = args.identity if args.identity else 'None'
|
||||||
self.syzygy_path = args.syzygy if args.syzygy else None
|
self.syzygy_path = args.syzygy if args.syzygy else None
|
||||||
self.fleet = args.fleet if args.fleet else False
|
self.fleet = args.fleet if args.fleet else False
|
||||||
self.proxy = args.proxy if args.proxy else False
|
|
||||||
|
|
||||||
def init_client(self):
|
def init_client(self):
|
||||||
|
|
||||||
@@ -1090,7 +1089,6 @@ def download_opening_book(config):
|
|||||||
|
|
||||||
# Download file if we do not already have it
|
# Download file if we do not already have it
|
||||||
if not os.path.isfile(book_path):
|
if not os.path.isfile(book_path):
|
||||||
if config.proxy: book_source = 'https://ghproxy.com/' + book_source
|
|
||||||
download_file(book_source, book_name + '.zip')
|
download_file(book_source, book_name + '.zip')
|
||||||
unzip_delete_file(book_name + '.zip', 'Books/')
|
unzip_delete_file(book_name + '.zip', 'Books/')
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user