1
1
mirror of https://github.com/sshuttle/sshuttle.git synced 2025-07-13 21:17:26 +02:00

Support using run from different directory

This commit is contained in:
Brian May
2016-08-30 19:03:46 +10:00
parent f57ad356b9
commit 4801ae6627

5
run

@ -1,6 +1,7 @@
#!/bin/sh
./setup.py --version > /dev/null
export PYTHONPATH=$PWD:$PYTHONPATH
source_dir="$(dirname $0)"
(cd "$source_dir" && "$source_dir/setup.py" --version > /dev/null)
export PYTHONPATH="$source_dir:$PYTHONPATH"
if python3.5 -V >/dev/null 2>&1; then
exec python3.5 -m "sshuttle" "$@"
elif python2.7 -V >/dev/null 2>&1; then