From 94a4849d905a84303a62a48c36633abca58bd2f3 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Sun, 12 Jan 2025 00:19:12 +0100 Subject: [PATCH] fix path --- rengobot.py | 4 ++-- sgfengine.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rengobot.py b/rengobot.py index fc3e5fb..2457199 100644 --- a/rengobot.py +++ b/rengobot.py @@ -136,7 +136,7 @@ async def board(ctx): await ctx.send("No active game in this channel!") return - os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") + os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") file = discord.File(str(ctx.channel.id)+".png") await ctx.send(file=file) @@ -163,7 +163,7 @@ async def newgame(ctx, handicap=0, komi=6.5): sgfengine.new_game(str(channel_id), handicap, komi) - os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") + os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") file = discord.File(str(channel_id)+".png") diff --git a/sgfengine.py b/sgfengine.py index fb3b0f3..97edefe 100644 --- a/sgfengine.py +++ b/sgfengine.py @@ -26,7 +26,7 @@ def new_game(channel_id, handicap=0, komi=6.5): f.write(game.serialise()) f.close() - os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") + os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") #0 if black to play, 1 if white to play def next_colour(channel_id): @@ -87,7 +87,7 @@ def play_move(channel_id, messagestr, player, overwrite=False): f.write(game.serialise()) f.close() - os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") + os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf") # colour is "B" if black resigns, "W" if white resigns def resign(channel_id, colour, file_name):