Support out of path execution

This commit is contained in:
Benjamin Collet 2018-12-10 17:32:42 +01:00
parent d81f48f8da
commit bc48d27c0c

View file

@ -9,9 +9,10 @@ import os
import hashlib import hashlib
from subprocess import call from subprocess import call
config = os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.yml")
# Read configuration # Read configuration
with open("config.yml", 'r') as ymlfile: with open(config, 'r') as ymlfile:
cfg = yaml.load(ymlfile) cfg = yaml.load(ymlfile)