diff --git a/isso/__init__.py b/isso/__init__.py index da5e7a0..a59311d 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -27,7 +27,8 @@ from __future__ import print_function -import isso as dist +import pkg_resources +dist = pkg_resources.get_distribution("isso") # check if exectuable is `isso` and gevent is available import sys diff --git a/isso/views/__init__.py b/isso/views/__init__.py index 0108b0d..0b995cd 100644 --- a/isso/views/__init__.py +++ b/isso/views/__init__.py @@ -2,7 +2,8 @@ from __future__ import unicode_literals -import isso as dist +import pkg_resources +dist = pkg_resources.get_distribution("isso") import json