folder restructure, dbmanager placeholder, iniparser file fullpath, and updated example
This commit is contained in:
parent
e89a2a75a8
commit
32b965edf8
4 changed files with 4 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,4 +11,5 @@ __pycache__
|
|||
GeoLite2-City.mmdb
|
||||
GeoLite2-City.tar.gz
|
||||
.idea/
|
||||
.idea/*
|
||||
Varken/varken.ini
|
||||
|
|
0
Varken/dbmanager.py
Normal file
0
Varken/dbmanager.py
Normal file
|
@ -1,6 +1,6 @@
|
|||
import sys
|
||||
import configparser
|
||||
|
||||
from os.path import abspath, dirname, join
|
||||
from Varken.helpers import Server, TautulliServer, SonarrServer, InfluxServer
|
||||
|
||||
|
||||
|
@ -28,7 +28,8 @@ class INIParser(object):
|
|||
self.parse_opts()
|
||||
|
||||
def read_file(self):
|
||||
with open('varken.ini') as config_ini:
|
||||
file_path = abspath(join(dirname(__file__), '..', 'varken.ini'))
|
||||
with open(file_path) as config_ini:
|
||||
self.config.read_file(config_ini)
|
||||
|
||||
def parse_opts(self):
|
||||
|
|
Loading…
Reference in a new issue