mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
7 lines
207 B
Python
7 lines
207 B
Python
from pkg_resources import get_distribution, DistributionNotFound
|
|
|
|
try:
|
|
__version__ = get_distribution(__name__).version
|
|
except DistributionNotFound:
|
|
# package is not installed
|
|
__version__ = None
|