From ad750c947c66052768f82a3c068ecf0579e37a2c Mon Sep 17 00:00:00 2001 From: Espy | Neko | 404 <34942042+neko404notfound@users.noreply.github.com> Date: Tue, 22 May 2018 23:09:47 +0100 Subject: [PATCH] Update __main__.py --- src/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/__main__.py b/src/__main__.py index 16b076e..468225c 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -16,6 +16,7 @@ from discord.ext import commands from src.config.config import LoadConfig from src.shared_libs.loggable import Loggable +from src.shared_libs.ioutil import in_here # Init logging to output on INFO level to stderr. @@ -46,7 +47,7 @@ class SebiMachine(commands.Bot, LoadConfig, Loggable): # Load plugins # Add your cog file name in this list - with open('cogs.txt') as cog_file: + with open(in_here('cogs.txt')) as cog_file: cogs = cog_file.readlines() for cog in cogs: