fixed file path search
This commit is contained in:
parent
ea122ddb2b
commit
4c4955e474
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
import sys
|
import sys
|
||||||
import configparser
|
import configparser
|
||||||
from os.path import abspath, join
|
from os.path import abspath, dirname, join
|
||||||
from Varken.helpers import OmbiServer, TautulliServer, SonarrServer, InfluxServer, RadarrServer
|
from Varken.helpers import OmbiServer, TautulliServer, SonarrServer, InfluxServer, RadarrServer
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class INIParser(object):
|
||||||
self.parse_opts()
|
self.parse_opts()
|
||||||
|
|
||||||
def read_file(self):
|
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:
|
with open(file_path) as config_ini:
|
||||||
self.config.read_file(config_ini)
|
self.config.read_file(config_ini)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue