removed a reduntant variable

This commit is contained in:
benton 2021-07-23 11:33:48 -05:00
parent ee6705f84f
commit 5ed8a559dd

3
knock
View file

@ -13,7 +13,6 @@ args.acsm_file = Path(args.acsm_file).expanduser()
args.drm_file = args.acsm_file.with_suffix('.drm.epub') args.drm_file = args.acsm_file.with_suffix('.drm.epub')
args.epub_file = args.acsm_file.with_suffix('.epub') args.epub_file = args.acsm_file.with_suffix('.epub')
args.adobe_dir = Path('~/.config/knock').expanduser() args.adobe_dir = Path('~/.config/knock').expanduser()
args.activation_file = args.adobe_dir.joinpath('activation.xml')
if not args.acsm_file.exists(): if not args.acsm_file.exists():
raise Exception(f'{str(args.acsm_file)} does not exist.') raise Exception(f'{str(args.acsm_file)} does not exist.')
@ -49,7 +48,7 @@ print('Decrypting the file...')
subprocess.check_output([ subprocess.check_output([
'inept-epub', 'inept-epub',
str(args.activation_file), str(args.adobe_dir.joinpath('activation.xml')),
str(args.drm_file), str(args.drm_file),
str(args.epub_file) str(args.epub_file)
]) ])