better detect missing dependencies on startup

This commit is contained in:
Nick Sweeting 2020-08-18 04:38:13 -04:00
parent b681a477ae
commit 92de20af15
3 changed files with 28 additions and 15 deletions

View file

@ -29,7 +29,7 @@ def should_save_singlefile(link: Link, out_dir: Optional[str]=None) -> bool:
return False
output = Path(out_dir or link.link_dir) / 'singlefile.html'
return SAVE_SINGLEFILE and (not output.exists())
return SAVE_SINGLEFILE and SINGLEFILE_VERSION and (not output.exists())
@enforce_types