diff options
| author | Yuval Adam <_@yuv.al> | 2026-07-24 13:23:44 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2026-07-24 13:23:44 +0200 |
| commit | 70781bce8d2c18c8292a89653b6183d2bb210441 (patch) | |
| tree | 8057692c9a5bdab5d926b60c1221cd58a2a4a178 /scripts | |
| parent | 7bcb41306a944160a58393c50593f25767649f59 (diff) | |
Run source checkout without PYTHONPATH
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/install-dev | 2 | ||||
| -rwxr-xr-x | scripts/install-extension | 2 | ||||
| -rwxr-xr-x | scripts/parley | 4 | ||||
| -rwxr-xr-x | scripts/parleyctl | 4 | ||||
| -rwxr-xr-x | scripts/parleyd | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/scripts/install-dev b/scripts/install-dev index a2eb660..cd4a7fc 100755 --- a/scripts/install-dev +++ b/scripts/install-dev @@ -6,7 +6,7 @@ unit_dir=${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user dbus_dir=${XDG_DATA_HOME:-$HOME/.local/share}/dbus-1/services cd "$root" -/usr/bin/python -c 'import gi' >/dev/null +python -c 'import gi' >/dev/null mkdir -p "$unit_dir" "$dbus_dir" sed "s|^ExecStart=.*|ExecStart=$root/scripts/parleyd|" \ diff --git a/scripts/install-extension b/scripts/install-extension index e32e9da..fd861dc 100755 --- a/scripts/install-extension +++ b/scripts/install-extension @@ -14,7 +14,7 @@ fi ln -s "$root/extension" "$destination" cd "$root" -/usr/bin/python - "$uuid" <<'PY' +python - "$uuid" <<'PY' import sys from gi.repository import Gio diff --git a/scripts/parley b/scripts/parley index 9213cbd..49e7098 100755 --- a/scripts/parley +++ b/scripts/parley @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -euo pipefail root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) -export PYTHONPATH="$root/src${PYTHONPATH:+:$PYTHONPATH}" -exec /usr/bin/python -m parley.cli "$@" +cd "$root" +exec python -m parley.cli "$@" diff --git a/scripts/parleyctl b/scripts/parleyctl index 2973c88..0fda0ba 100755 --- a/scripts/parleyctl +++ b/scripts/parleyctl @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -euo pipefail root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) -export PYTHONPATH="$root/src${PYTHONPATH:+:$PYTHONPATH}" -exec /usr/bin/python -m parley.ctl "$@" +cd "$root" +exec python -m parley.ctl "$@" diff --git a/scripts/parleyd b/scripts/parleyd index 9e66846..8584093 100755 --- a/scripts/parleyd +++ b/scripts/parleyd @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -euo pipefail root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) -export PYTHONPATH="$root/src${PYTHONPATH:+:$PYTHONPATH}" -exec /usr/bin/python -m parley.daemon "$@" +cd "$root" +exec python -m parley.daemon "$@" |
