Skip to content

Commit fd0f437

Browse files
authored
Merge 4a01019 into a0f16e0
2 parents a0f16e0 + 4a01019 commit fd0f437

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

sconstruct

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# A part of NonVisual Desktop Access (NVDA)
2-
# Copyright (C) 2010-2021 NV Access Limited, James Teh, Michael Curran, Peter Vágner, Joseph Lee,
3-
# Reef Turner, Babbage B.V., Leonard de Ruijter, Łukasz Golonka, Accessolutions, Julien Cochuyt
2+
# Copyright (C) 2010-2023 NV Access Limited, James Teh, Michael Curran, Peter Vágner, Joseph Lee,
3+
# Reef Turner, Babbage B.V., Leonard de Ruijter, Łukasz Golonka, Accessolutions, Julien Cochuyt,
4+
# Cyrille Bougot
45
# This file may be used under the terms of the GNU General Public License, version 2 or later.
56
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html
67

@@ -499,12 +500,17 @@ potSourceFiles = [
499500
# Don't use sourceDir as the source, as this depends on comInterfaces and nvdaHelper.
500501
# We only depend on the Python files.
501502
f for recurseDirs in getSubDirs(sourceDir.path)
503+
if not (
504+
# Exclude comInterfaces, since these don't contain translatable strings
505+
# and they cause unknown encoding warnings.
506+
recurseDirs.startswith(r"source\comInterfaces")
507+
# Exclude userConfig folder which does not contain NVDA code but may contain gettext call without
508+
# translator comments in add-ons or scratchpad, triggering false positive for checkpot script.
509+
or recurseDirs.startswith(r"source\userConfig")
510+
)
502511
for pattern in ("*.py", "*.pyw")
503512
for f in env.Glob(
504513
os.path.join(recurseDirs, pattern),
505-
# Exclude comInterfaces, since these don't contain translatable strings
506-
# and they cause unknown encoding warnings.
507-
exclude="source/comInterfaces/*"
508514
)
509515
]
510516

0 commit comments

Comments
 (0)