Release 0.0.8

Fixed:
- Issue #7: fix manually supplied .ird files not being used.
This commit is contained in:
Nichlas Severinsen 2021-11-27 22:22:19 +01:00
parent 52bf2bad01
commit 88d1b48167
6 changed files with 36 additions and 7 deletions

View file

@ -47,6 +47,12 @@ if __name__ == '__main__':
cwd = pathlib.Path(__file__).resolve().parent
keys_path = cwd / 'keys'
if not keys_path.exists():
print('Error: No keys/ folder. Place the .key files in a tools/keys/ folder')
sys.exit()
any_dats = [x for x in cwd.glob('*.dat')]
if not any_dats:
@ -82,6 +88,11 @@ if __name__ == '__main__':
db.close()
data_path = (cwd.parent / 'libray') / 'data/'
if not data_path.exists():
data_path.mkdir()
shutil.copyfile(db_path, ((cwd.parent / 'libray') / 'data/') / db_path.name)
print('Warning: no keyfiles for %s titles' % str(warnings))