diff --git a/.gitignore b/.gitignore index bf6a657..f33ae0e 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ tmp/ .gemini/ GEMINI.md AGENTS.md + +# --- Temp macOS files +.DS_Store diff --git a/odev.sh b/odev.sh index dc5227d..c67c49d 100755 --- a/odev.sh +++ b/odev.sh @@ -3,9 +3,13 @@ # Run odev using the virtualenv if available, otherwise fallback to system python3 # for compatibility with older running installations of odev. +resolve_path() { + realpath "$1" 2>/dev/null || readlink -f "$1" +} + for interpreter in ~/.config/odev/venv/bin/python3 /usr/bin/python3; do if [ -x "$interpreter" ]; then - SCRIPT_PATH=$(readlink -f "$0") + SCRIPT_PATH=$(resolve_path "$0") exec "$interpreter" "$(dirname "$SCRIPT_PATH")/main.py" "$@" exit $? fi diff --git a/odev/_version.py b/odev/_version.py index 62a0d42..387935d 100644 --- a/odev/_version.py +++ b/odev/_version.py @@ -22,4 +22,4 @@ # or merged change. # ------------------------------------------------------------------------------ -__version__ = "4.29.4" +__version__ = "4.29.5"