Skip to content

Commit

Permalink
use python3 in scripts/view-glossary and scripts/diff-glossary to b…
Browse files Browse the repository at this point in the history
…ypass pyenv
  • Loading branch information
ilius committed Sep 12, 2024
1 parent 5fe93f4 commit 2a23966
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/diff-glossary
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ myPath=$(realpath "$0")
myDir1=$(dirname "$myPath")
rootDir=$(dirname "$myDir1")

PYTHONPATH=$rootDir python "$rootDir/pyglossary/ui/tools/diff_glossary.py" "$@"
# There is a bug in pyenv 'python' script that splits up a (quoted) arguemnt that has spaces
# So there is no way of passing a filename with spaces
# That's why I changed `python` to `python3` to avoid pyenv

PYTHONPATH=$rootDir python3 "$rootDir/pyglossary/ui/tools/diff_glossary.py" "$@"
6 changes: 5 additions & 1 deletion scripts/view-glossary
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ myPath=$(realpath "$0")
myDir1=$(dirname "$myPath")
rootDir=$(dirname "$myDir1")

PYTHONPATH=$rootDir python "$rootDir/pyglossary/ui/tools/view_glossary.py" "$@"
# There is a bug in pyenv 'python' script that splits up a (quoted) arguemnt that has spaces
# So there is no way of passing a filename with spaces
# That's why I changed `python` to `python3` to avoid pyenv

PYTHONPATH=$rootDir python3 "$rootDir/pyglossary/ui/tools/view_glossary.py" "$@"

0 comments on commit 2a23966

Please sign in to comment.