mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 18:22:37 +02:00
FIXUP: Use 'in' instead of '=='
This commit is contained in:
parent
1302a1fcbf
commit
4c7db48c59
1 changed files with 3 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue