more merge fixes; import libs

This commit is contained in:
panni 2018-11-28 12:53:37 +01:00
parent bddc6b7ffe
commit 39a698cae3
3 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,7 @@ def check_releases():
else: else:
for release in r.json(): for release in r.json():
releases.append([release['name'], release['body']]) releases.append([release['name'], release['body']])
with open(os.path.join(config_dir, 'config', 'releases.txt'), 'w') as f: with open(os.path.join(args.config_dir, 'config', 'releases.txt'), 'w') as f:
json.dump(releases, f) json.dump(releases, f)

View File

@ -30,7 +30,7 @@ if not os.path.exists(os.path.join(args.config_dir, 'log')):
os.mkdir(os.path.join(args.config_dir, 'log')) os.mkdir(os.path.join(args.config_dir, 'log'))
logging.debug("BAZARR Created log folder") logging.debug("BAZARR Created log folder")
if not os.path.exists(os.path.join(config_dir, 'config', 'releases.txt')): if not os.path.exists(os.path.join(args.config_dir, 'config', 'releases.txt')):
from check_update import check_releases from check_update import check_releases
check_releases() check_releases()
logging.debug("BAZARR Created releases file") logging.debug("BAZARR Created releases file")

View File

@ -2,6 +2,7 @@
import gc import gc
import sys import sys
import libs
import bottle import bottle
import itertools import itertools
import operator import operator