import os


BASE_DIR = os.path.abspath(os.path.dirname(__file__))


class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY')
    BOT_API_TOKEN = os.environ.get('BOT_API_TOKEN')
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False

    @staticmethod
    def init_app(app):
        pass

import os


BASE_DIR = os.path.abspath(os.path.dirname(__file__), os.pardir)


class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY')
    BOT_API_TOKEN = os.environ.get('BOT_API_TOKEN')
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False

    @staticmethod
    def init_app(app):
        pass

Fix BASE_DIR in config