Support for absolute call
This commit is contained in:
parent
9bac5487ef
commit
9305972b51
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue