From fc9e7da9c40f3c8f2eea904377155365e500f3f0 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Thu, 30 Aug 2018 08:59:32 -0500 Subject: [PATCH] Fixed import issue --- geoffrey/bot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/geoffrey/bot.py b/geoffrey/bot.py index ffceb9c..a64b633 100644 --- a/geoffrey/bot.py +++ b/geoffrey/bot.py @@ -5,10 +5,9 @@ from discord import Game from discord.ext import commands from discord.utils import oauth_url from sqlalchemy.exc import OperationalError - import logging.handlers as handlers from sys import stdout - +from os import path from geoffrey.BotConfig import * from geoffrey.BotErrors import * @@ -168,7 +167,7 @@ def setup_logging(config): bot_info_logger.addHandler(console) -def start_bot(config_path="{}/GeoffreyConfig.ini".format(os.path.dirname(os.path.abspath(__file__)))): +def start_bot(config_path="{}/GeoffreyConfig.ini".format(path.dirname(path.abspath(__file__)))): try: global bot_config, bot_commands bot_config = get_config(config_path)