|
1 | 1 | # 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 |
4 | 5 | # This file may be used under the terms of the GNU General Public License, version 2 or later. |
5 | 6 | # For more details see: https://www.gnu.org/licenses/gpl-2.0.html |
6 | 7 |
|
@@ -499,12 +500,17 @@ potSourceFiles = [ |
499 | 500 | # Don't use sourceDir as the source, as this depends on comInterfaces and nvdaHelper. |
500 | 501 | # We only depend on the Python files. |
501 | 502 | 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 | + ) |
502 | 511 | for pattern in ("*.py", "*.pyw") |
503 | 512 | for f in env.Glob( |
504 | 513 | 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/*" |
508 | 514 | ) |
509 | 515 | ] |
510 | 516 |
|
|
0 commit comments