File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555
5656
5757APP_NAME = 'Python Easy Chess GUI'
58- APP_VERSION = 'v0.78 '
58+ APP_VERSION = 'v0.79 '
5959BOX_TITLE = '{} {}' .format (APP_NAME , APP_VERSION )
6060
6161
@@ -1745,7 +1745,7 @@ def get_engine_id_name(self):
17451745 def get_engines (self ):
17461746 """ Returns a list of engines located in Engines dir """
17471747 engine_list = []
1748- engine_path = './ Engines/'
1748+ engine_path = Path ( ' Engines' )
17491749 files = os .listdir (engine_path )
17501750 for file in files :
17511751 if not file .endswith ('.gz' ) and not file .endswith ('.dll' ) \
@@ -1913,7 +1913,7 @@ def main_loop(self):
19131913 engine_id_name = self .get_engine_id_name ()
19141914
19151915 self .adviser_engine = self .engine_list [0 ]
1916- self .adviser_engine_path = './ Engines/' + self .adviser_engine
1916+ self .adviser_engine_path = Path ( ' Engines' , self .adviser_engine )
19171917
19181918 self .init_game ()
19191919
@@ -2056,7 +2056,7 @@ def main_loop(self):
20562056 # In case the user did not select an engine and presses OK
20572057 try :
20582058 self .adviser_engine = v ['engine_file_k' ][0 ]
2059- self .adviser_engine_path = './ Engines/' + self .adviser_engine
2059+ self .adviser_engine_path = Path ( ' Engines' , self .adviser_engine )
20602060 except :
20612061 logging .info ('User did not select an engine and pressed OK' )
20622062
You can’t perform that action at this time.
0 commit comments