From bc48d27c0c34f598653cf1aa73c3caab9dea156f Mon Sep 17 00:00:00 2001 From: Benjamin Collet Date: Mon, 10 Dec 2018 17:32:42 +0100 Subject: [PATCH] Support out of path execution --- ripe-api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ripe-api.py b/ripe-api.py index 4798af2..52658ed 100755 --- a/ripe-api.py +++ b/ripe-api.py @@ -9,9 +9,10 @@ import os import hashlib from subprocess import call +config = os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.yml") # Read configuration -with open("config.yml", 'r') as ymlfile: +with open(config, 'r') as ymlfile: cfg = yaml.load(ymlfile)