Red-DiscordBot/redbot/core/__init__.py
Will 09b3642559
[V3 Cog/Data Manager] Bundled Cog Data (#1063)
* Refactor find_spec out of core_commands

* Fix version error when not installed

* initial

* Fix find_cogs call

* Enable copying

* Add helper method for cog creators

* Add warning

* My dpy skillz need work
2017-10-27 20:06:47 -04:00

12 lines
276 B
Python

import pkg_resources
from .config import Config
from .context import RedContext
__all__ = ["Config", "RedContext", "__version__"]
try:
__version__ = pkg_resources.require("Red-DiscordBot")[0].version
except pkg_resources.DistributionNotFound:
__version__ = "3.0.0"