moved files
This commit is contained in:
parent
7422d0a029
commit
e68dfbe9bb
2 changed files with 2 additions and 2 deletions
|
@ -278,7 +278,7 @@ def geoip_download():
|
||||||
for files in tar.getmembers():
|
for files in tar.getmembers():
|
||||||
if 'GeoLite2-City.mmdb' in files.name:
|
if 'GeoLite2-City.mmdb' in files.name:
|
||||||
files.name = os.path.basename(files.name)
|
files.name = os.path.basename(files.name)
|
||||||
tar.extract(files, abspath(join('..', 'data')))
|
tar.extract(files, abspath(join('.', 'data')))
|
||||||
os.remove(tar_dbfile)
|
os.remove(tar_dbfile)
|
||||||
|
|
||||||
def geo_lookup(ipaddress):
|
def geo_lookup(ipaddress):
|
||||||
|
|
|
@ -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('.', '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