text: """A library for custom keywords
  """
  import json
  
  def defineEnvironmentVariablesFromJsonFile(env):
      print(f'Looking for {env} environment')
      variables = {}
      environments_file_path = 'Resources/Environments/environments_' + env + '.json'
      try:
          with open(environments_file_path) as json_file:
              data = json.loads(json_file.read())
              for d in data:
                  if d["environment"] == env:
                      print(f'Found an environment {env}!')
                      for key, value in d.items():
                          if key not in variables:
                              variables[key] = value
      except:
          print(f'Environment {env} not found!')
      return variables
  
  
  def get_url_without_starting_slash(string):
      if string[0] == "/":
          string_without_starting_slash = string[1:]
          return string_without_starting_slash
      else:
          return string
  