diff --git a/Varken/iniparser.py b/Varken/iniparser.py index 9a21e11..0b71629 100644 --- a/Varken/iniparser.py +++ b/Varken/iniparser.py @@ -1,6 +1,6 @@ import sys import configparser -from os.path import abspath, join +from os.path import abspath, dirname, join from Varken.helpers import OmbiServer, TautulliServer, SonarrServer, InfluxServer, RadarrServer @@ -28,7 +28,7 @@ class INIParser(object): self.parse_opts() def read_file(self): - file_path = abspath(join('.', 'data', 'varken.ini')) + file_path = abspath(join(dirname(__file__), '..', 'data', 'varken.ini')) with open(file_path) as config_ini: self.config.read_file(config_ini)