Support out of path execution

This commit is contained in:
Benjamin Collet 2018-12-10 17:32:42 +01:00
parent d81f48f8da
commit bc48d27c0c
1 changed files with 2 additions and 1 deletions

View File

@ -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)