Skip to content

Commit dd40326

Browse files
committed
SDK-826: Add environment variable to allow overriding of whole endpoint
1 parent c1b9858 commit dd40326

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

yoti_python_sdk/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,21 @@
2121
with open(ver_path) as ver_file:
2222
exec(ver_file.read(), main_ns)
2323

24+
<<<<<<< HEAD
2425
__version__ = main_ns["__version__"]
2526
YOTI_API_URL = environ.get("YOTI_API_URL", DEFAULTS["YOTI_API_URL"])
2627
YOTI_API_PORT = environ.get("YOTI_API_PORT", DEFAULTS["YOTI_API_PORT"])
2728
YOTI_API_VERSION = environ.get("YOTI_API_VERSION", DEFAULTS["YOTI_API_VERSION"])
2829
YOTI_API_ENDPOINT = "{0}:{1}/api/{2}".format(
2930
YOTI_API_URL, YOTI_API_PORT, YOTI_API_VERSION
3031
)
32+
=======
33+
__version__ = main_ns['__version__']
34+
YOTI_API_URL = environ.get('YOTI_API_URL', DEFAULTS['YOTI_API_URL'])
35+
YOTI_API_PORT = environ.get('YOTI_API_PORT', DEFAULTS['YOTI_API_PORT'])
36+
YOTI_API_VERSION = environ.get('YOTI_API_VERSION', DEFAULTS['YOTI_API_VERSION'])
37+
YOTI_API_ENDPOINT = environ.get('YOTI_API_ENDPOINT', '{0}:{1}/api/{2}'.format(YOTI_API_URL, YOTI_API_PORT, YOTI_API_VERSION))
38+
>>>>>>> SDK-826: Add environment variable to allow overriding of whole endpoint
3139

3240
YOTI_API_VERIFY_SSL = environ.get("YOTI_API_VERIFY_SSL", DEFAULTS["YOTI_API_VERIFY_SSL"])
3341
if YOTI_API_VERIFY_SSL == "false":

0 commit comments

Comments
 (0)