From 36299c645d9aa0b405060c1564d3ac08ed1241e3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 20 Jan 2017 13:12:34 +0100 Subject: [PATCH] c --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7fec1299..dfa5e34a 100644 --- a/bot.py +++ b/bot.py @@ -476,8 +476,9 @@ def getrygimage(): if len(cmd[1]) > 2: telegram.sendmessage("Puoi mettere solo due lettere.") else: + # FIXME: percorsi assoluti directory = "/var/www/html/rygimages/{}.png" - infile = open("basiclogo.svg", "r") + infile = open("/royal/bot/basiclogo.svg", "r") indata = infile.read().format(cmd[1]).encode() infile.close() try: