From eef42655e5f876e7ec5f5c77e59d79ef13d258c8 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 2 Apr 2022 18:20:04 +0200 Subject: [PATCH] Trying to fix build --- LogarithmPlotter/util/latex.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/LogarithmPlotter/util/latex.py b/LogarithmPlotter/util/latex.py index f0a76e0..0ce5b91 100644 --- a/LogarithmPlotter/util/latex.py +++ b/LogarithmPlotter/util/latex.py @@ -68,14 +68,12 @@ class Latex(QObject): Checks if the current latex installation is valid. """ if LATEX_PATH is None: - if "--test-build" in argv: - print("No Latex installation found.") - else: + print("No Latex installation found.") + if "--test-build" not in argv: QMessageBox.warning(None, "LogarithmPlotter - Latex setup", QCoreApplication.translate("latex", "No Latex installation found.\nIf you already have a latex distribution installed, make sure it's installed on your path.\nOtherwise, you can download a Latex distribution like TeX Live at https://tug.org/texlive/.")) elif DVIPNG_PATH is None: - if "--test-build" in argv: - print("DVIPNG not found.") - else: + print("DVIPNG not found.") + if "--test-build" not in argv: QMessageBox.warning(None, "LogarithmPlotter - Latex setup", QCoreApplication.translate("latex", "DVIPNG was not found. Make sure you include it from your Latex distribution.")) @Property(bool)