8000 Fix case where args.po_dir is None · python/python-docs-pt-br@d160183 · GitHub
[go: up one dir, main page]

Skip to content

Commit d160183

Browse files
committed
Fix case where args.po_dir is None
1 parent 9d6d19d commit d160183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/manage_translations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def main() -> None:
154154
if args.command == "build":
155155
language = get_value(args.language, "--language", "PYDOC_LANGUAGE")
156156
version = get_value(args.python_version, "--python-version", "PYDOC_VERSION")
157-
po_dir = args.po_dir.absolute() or cpython_path / f"Doc/locales/{language}/LC_MESSAGES"
157+
po_dir = args.po_dir.absolute() if args.po_dir else cpython_path / f"Doc/locales/{language}/LC_MESSAGES"
158158

159159
if args.command in ["build", "generate_templates"]:
160160
if not shutil.which("make"):

0 commit comments

Comments
 (0)
0