more merge fixes; import libs

pull/292/head
panni 6 years ago
parent bddc6b7ffe
commit 39a698cae3

@ -67,7 +67,7 @@ def check_releases():
else:
for release in r.json():
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)

@ -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'))
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
check_releases()
logging.debug("BAZARR Created releases file")

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

Loading…
Cancel
Save