From 987e793bb2aa562d2e3635cacdb82ef3cc6988a6 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 20 Jun 2019 14:41:08 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Read.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Read.py b/sopel_modules/SpiceBot/Read.py index 163d32b..cc939fd 100644 --- a/sopel_modules/SpiceBot/Read.py +++ b/sopel_modules/SpiceBot/Read.py @@ -5,6 +5,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi import sopel_modules import os +import sys import codecs from .Logs import logs @@ -62,7 +63,8 @@ class BotRead(): # Read dictionary from file, if not, enable an empty dict filereadgood = True try: - inf = codecs.open(str(filepath), "r", encoding='utf-8') + sys.stderr(str(filepath)) + inf = codecs.open(filepath, "r", encoding='utf-8') infread = inf.read() dict_from_file = eval(infread) except Exception as e: @@ -113,7 +115,7 @@ class BotRead(): # Read dictionary from file, if not, enable an empty dict filereadgood = True try: - inf = codecs.open(str(filepath), "r", encoding='utf-8') + inf = codecs.open(filepath, "r", encoding='utf-8') infread = inf.read() dict_from_file = eval(infread) except Exception as e: