aboutsummaryrefslogtreecommitdiff
path: root/api/game/voerbak_connector.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/game/voerbak_connector.py')
-rw-r--r--api/game/voerbak_connector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/game/voerbak_connector.py b/api/game/voerbak_connector.py
index 6274ada..9627f29 100644
--- a/api/game/voerbak_connector.py
+++ b/api/game/voerbak_connector.py
@@ -11,7 +11,7 @@ DISC_A = Fore.RED + DISC_SHAPE + Fore.RESET
DISC_B = Fore.BLUE + DISC_SHAPE + Fore.RESET
EMPTY = Fore.LIGHTBLACK_EX + "_" + Fore.RESET
-VOERBAK_LOCATION = "./voerbak"
+VOERBAK_LOCATION = os.path.dirname(__file__) + "/voerbak"
if os.name == "nt": VOERBAK_LOCATION += ".exe"
class bord:
@@ -21,7 +21,7 @@ class bord:
self.player_1 = True
self.board = "0" * (w * h)
self.win_positions = []
- self.process = subprocess.Popen(["./voerbak"],
+ self.process = subprocess.Popen([VOERBAK_LOCATION],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=None)