Support for absolute call

This commit is contained in:
Benjamin Collet 2018-12-10 15:12:07 +01:00
parent 9bac5487ef
commit 9305972b51

View file

@ -3,8 +3,11 @@
import requests import requests
import yaml import yaml
import argparse import argparse
import os
with open("config.yml", "r") as ymlfile: config = os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.yml")
with open(config, "r") as ymlfile:
cfg = yaml.load(ymlfile) cfg = yaml.load(ymlfile)
def call_api(params, path): def call_api(params, path):