|
38 | 38 | import PySimpleGUI as sg |
39 | 39 | import os |
40 | 40 | import sys |
41 | | -import subprocess |
42 | 41 | import threading |
43 | 42 | from pathlib import Path, PurePath # Python 3.4 and up |
44 | 43 | import queue |
|
61 | 60 |
|
62 | 61 |
|
63 | 62 | APP_NAME = 'Python Easy Chess GUI' |
64 | | -APP_VERSION = 'v1.4' |
| 63 | +APP_VERSION = 'v1.5' |
65 | 64 | BOX_TITLE = '{} {}'.format(APP_NAME, APP_VERSION) |
66 | 65 |
|
67 | 66 |
|
@@ -432,8 +431,7 @@ def run(self): |
432 | 431 |
|
433 | 432 | try: |
434 | 433 | self.engine = chess.engine.SimpleEngine.popen_uci( |
435 | | - self.engine_path_and_file, cwd=folder, |
436 | | - creationflags=subprocess.CREATE_NO_WINDOW) |
| 434 | + self.engine_path_and_file, cwd=folder) |
437 | 435 | except chess.engine.EngineTerminatedError: |
438 | 436 | logging.warning('Failed to start {}.'.format(self.engine_path_and_file)) |
439 | 437 | self.eng_queue.put('bestmove {}'.format(self.bm)) |
@@ -835,8 +833,7 @@ def get_engine_id_name(self, path_and_file, q): |
835 | 833 |
|
836 | 834 | try: |
837 | 835 | engine = chess.engine.SimpleEngine.popen_uci( |
838 | | - path_and_file, cwd=folder, |
839 | | - creationflags=subprocess.CREATE_NO_WINDOW) |
| 836 | + path_and_file, cwd=folder) |
840 | 837 | id_name = engine.id['name'] |
841 | 838 | engine.quit() |
842 | 839 | except Exception: |
@@ -1054,8 +1051,7 @@ def add_engine_to_config_file(self, engine_path_and_file, pname, que): |
1054 | 1051 |
|
1055 | 1052 | try: |
1056 | 1053 | engine = chess.engine.SimpleEngine.popen_uci( |
1057 | | - engine_path_and_file, cwd=folder, |
1058 | | - creationflags=subprocess.CREATE_NO_WINDOW) |
| 1054 | + engine_path_and_file, cwd=folder) |
1059 | 1055 | except Exception: |
1060 | 1056 | logging.exception('Failed to add {} in config file.'.format(pname)) |
1061 | 1057 | que.put('Failure') |
@@ -1145,8 +1141,7 @@ def check_engine_config_file(self): |
1145 | 1141 |
|
1146 | 1142 | try: |
1147 | 1143 | engine = chess.engine.SimpleEngine.popen_uci( |
1148 | | - engine_path_and_file, cwd=folder, |
1149 | | - creationflags=subprocess.CREATE_NO_WINDOW) |
| 1144 | + engine_path_and_file, cwd=folder) |
1150 | 1145 | except Exception: |
1151 | 1146 | logging.exception('Failed to start engine.') |
1152 | 1147 | continue |
|
0 commit comments