from mongo_pool import MongoPool
from pkg_resources import get_distribution, DistributionNotFound
import os.path

__all__ = ['mongo_pool']

try:
    _dist = get_distribution('mongo-pool')
    if not __file__.startswith(os.path.join(_dist.location, 'mongo_pool')):
        # not installed, but there is another version that *is*
        raise DistributionNotFound
except DistributionNotFound:
    __version__ = 'Please install this project with setup.py'
else:
    __version__ = _dist.version

from .mongo_pool import MongoPool
from pkg_resources import get_distribution, DistributionNotFound
import os.path

__all__ = ['mongo_pool']

try:
    _dist = get_distribution('mongo-pool')
    if not __file__.startswith(os.path.join(_dist.location, 'mongo_pool')):
        # not installed, but there is another version that *is*
        raise DistributionNotFound
except DistributionNotFound:
    __version__ = 'Please install this project with setup.py'
else:
    __version__ = _dist.version

Update relative import to work with python 3.6. ANL-10319
Update relative import to work with python 3.6. ANL-10319
