FIXUP: Use 'in' instead of '=='

This commit is contained in:
Alex Pyrgiotis 2024-10-09 18:26:06 +03:00
parent 1302a1fcbf
commit 4c7db48c59
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -35,10 +35,9 @@ def get_resource_path(filename: str) -> str:
def get_tessdata_dir() -> str: def get_tessdata_dir() -> str:
if ( if getattr(sys, "dangerzone_dev", False) or platform.system() in (
getattr(sys, "dangerzone_dev", False) "Windows",
or platform.system() == "Windows" "Darwin",
or platform.system() == "Darwin"
): ):
# Always use the tessdata path from the Dangerzone ./share directory, for # Always use the tessdata path from the Dangerzone ./share directory, for
# development builds, or in Windows/macOS platforms. # development builds, or in Windows/macOS platforms.