# importing the sys, json, requests library
import os
+import pathlib
import sys
import json
import time
def get_environment_variable(name):
configs = Properties()
- env_file = os.path.dirname(os.path.abspath(__file__)) + '/' + '../' + '.env'
+ path = pathlib.Path( os.path.dirname(os.path.abspath(__file__)) )
+ env_file = str(path.parent.absolute()) + '/.env'
with open(env_file, "rb") as read_prop:
configs.load(read_prop)
return configs.get(name).data
def isReady(timeoutSeconds=180):
- url = getBaseUrl()
+ url = getBaseUrl();
while timeoutSeconds > 0:
try:
response = requests.get(url, verify=False, headers={})