fixed file path search

This commit is contained in:
Nicholas St. Germain 2018-12-02 21:59:35 -06:00
parent ea122ddb2b
commit 4c4955e474

View file

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