Better documentation, smoother checks

This commit is contained in:
Remy Moll
2022-06-25 16:06:45 +02:00
parent 12a7de91ed
commit 79e3f54955
3 changed files with 23 additions and 56 deletions

View File

@@ -35,7 +35,7 @@ def file_overview(file_url: str, file_attributes: list, options: dict) -> None:
file_table = Table(
title = file_url,
row_styles = ["white", "bright_black"],
min_width = 150
min_width = 100
)
file_table.add_column("Attribute", justify = "right", no_wrap = True)
@@ -158,11 +158,11 @@ def verify_unchecked():
try:
# close any previously opened windows:
subprocess.call(["kill", "`pgrep evince`"])
# subprocess.call(["kill", "`pgrep evince`"])
os.system("pkill evince")
# then open a new one
subprocess.Popen(["evince", f"file://{os.path.join(article.save_path, article.file_name)}"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# supress evince gtk warnings
print("done")
except Exception as e:
print(e)
continue