diff --git a/locales/__init__.py b/src/locales/__init__.py similarity index 100% rename from locales/__init__.py rename to src/locales/__init__.py diff --git a/locales/de.po b/src/locales/de.po similarity index 100% rename from locales/de.po rename to src/locales/de.po diff --git a/locales/fi.po b/src/locales/fi.po similarity index 100% rename from locales/fi.po rename to src/locales/fi.po diff --git a/locales/fr.po b/src/locales/fr.po similarity index 100% rename from locales/fr.po rename to src/locales/fr.po diff --git a/locales/fr.py b/src/locales/fr.py similarity index 100% rename from locales/fr.py rename to src/locales/fr.py diff --git a/locales/it.po b/src/locales/it.po similarity index 100% rename from locales/it.po rename to src/locales/it.po diff --git a/locales/messages.pot b/src/locales/messages.pot similarity index 100% rename from locales/messages.pot rename to src/locales/messages.pot diff --git a/src/version.py b/src/version.py new file mode 100644 index 000000000..825459a0c --- /dev/null +++ b/src/version.py @@ -0,0 +1,10 @@ +try: + from importlib.metadata import get_distribution +except ImportError: + # Python < 3.7 + from pkg_resources import get_distribution + +import supybot.utils.python + +version = get_distribution("limnoria").version +supybot.utils.python._debug_software_version = version