mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-01-06 11:09:57 -08:00
80e6131a0d
This reverts commit 2c42150799
.
11 lines
380 B
Python
11 lines
380 B
Python
from pkg_resources import get_distribution, DistributionNotFound
|
|
|
|
try:
|
|
release = get_distribution('APScheduler').version.split('-')[0]
|
|
except DistributionNotFound:
|
|
release = '3.5.0'
|
|
|
|
version_info = tuple(int(x) if x.isdigit() else x for x in release.split('.'))
|
|
version = __version__ = '.'.join(str(x) for x in version_info[:3])
|
|
del get_distribution, DistributionNotFound
|