From 4c7db48c598d575f33a63c139c721b2104b4254a Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 9 Oct 2024 18:26:06 +0300 Subject: [PATCH] FIXUP: Use 'in' instead of '==' --- dangerzone/util.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dangerzone/util.py b/dangerzone/util.py index f53ac4b..ef86664 100644 --- a/dangerzone/util.py +++ b/dangerzone/util.py @@ -35,10 +35,9 @@ def get_resource_path(filename: str) -> str: def get_tessdata_dir() -> str: - if ( - getattr(sys, "dangerzone_dev", False) - or platform.system() == "Windows" - or platform.system() == "Darwin" + if getattr(sys, "dangerzone_dev", False) or platform.system() in ( + "Windows", + "Darwin", ): # Always use the tessdata path from the Dangerzone ./share directory, for # development builds, or in Windows/macOS platforms.