mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 01:13:37 +01:00
Support using run from different directory
This commit is contained in:
parent
f57ad356b9
commit
4801ae6627
5
run
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
|
||||
|
Loading…
Reference in New Issue
Block a user