Skip to content

Commit b94e5f6

Browse files
committed
Handle new path in potodo.sh
1 parent ba3d725 commit b94e5f6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

scripts/commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ set -eu
77

88
test -n ${PYDOC_LANGUAGE+x}
99

10-
rootdir=$(realpath $(dirname $0))
11-
language_dir="${PYDOC_LANG_DIR:-$rootdir/../cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES}"
10+
rootdir=$(realpath $(dirname $0)/..)
11+
language_dir="${PYDOC_LANG_DIR:-$rootdir/cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES}"
1212

1313
cd "$language_dir"
1414

scripts/potodo.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ test -n ${PYDOC_VERSION+x}
1010
test -n ${PYDOC_LANGUAGE+x}
1111

1212
rootdir=$(realpath $(dirname $0)/..)
13+
language_dir="${PYDOC_LANG_DIR:-$rootdir/cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES}"
1314

14-
cd "$rootdir"/cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES
15+
cd "$language_dir"
1516

1617
potodo --no-cache > potodo.md
1718

scripts/pull_translations.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ set -xeu
2222
test -n ${PYDOC_TX_PROJECT+x}
2323
test -n ${PYDOC_LANGUAGE+x}
2424

25-
rootdir=$(realpath $(dirname $0))
26-
language_dir="${PYDOC_LANG_DIR:-$rootdir/../cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES}"
25+
rootdir=$(realpath $(dirname $0)/..)
26+
language_dir="${PYDOC_LANG_DIR:-$rootdir/cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES}"
2727

2828
cd "$language_dir"
2929

0 commit comments

Comments
 (0)