We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adcce3e commit b59ddb7Copy full SHA for b59ddb7
yoti_python_sdk/__init__.py
@@ -1,8 +1,7 @@
1
# -*- coding: utf-8 -*-
2
import os
3
-from distutils.util import convert_path
4
from os import environ
5
-
+from .version import __version__
6
from yoti_python_sdk.client import Client
7
8
DEFAULTS = {
@@ -17,11 +16,8 @@
17
16
directory_name = os.path.dirname(__file__)
18
version_path = os.path.join(directory_name, "version.py")
19
20
-ver_path = convert_path(version_path)
21
-with open(ver_path) as ver_file:
22
- exec(ver_file.read(), main_ns)
+exec(open(version_path).read())
23
24
-__version__ = main_ns["__version__"]
25
YOTI_API_URL = environ.get("YOTI_API_URL", DEFAULTS["YOTI_API_URL"])
26
27
YOTI_PROFILE_ENDPOINT = "/api/v1"
0 commit comments