[tor-commits] [ooni-probe/master] Make sure bin/ooniprobe-dev can be called from anywhere
art at torproject.org
art at torproject.org
Fri Nov 20 14:42:00 UTC 2015
commit 8c53b36b94f7cefdaad045e4941503def5d9a121
Author: Simone Basso <bassosimone at gmail.com>
Date: Tue Oct 13 12:01:25 2015 +0200
Make sure bin/ooniprobe-dev can be called from anywhere
This was a feature or #412 that I initially overlooked since
the developer script was performing a `cd`.
Retain the property that you can call ooniprobe-dev from
basically any directory you want.
Example:
```
$ pwd
/tmp
$ $HOME/src/ooni/ooni-probe/bin/ooniprobe-dev -s
WARNING: running ooniprobe involves some risk that varies greatly
from country to country. You should be aware of this when
running the tool. Read more about this in the manpage or README.
Log opened.
* TCP Connect (blocking/tcp_connect)
Performs a TCP connect scan of all the host port combinations given as input.
[snip]
```
---
bin/ooniprobe-dev | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/ooniprobe-dev b/bin/ooniprobe-dev
index 7eaaf40..c44a8a6 100755
--- a/bin/ooniprobe-dev
+++ b/bin/ooniprobe-dev
@@ -7,4 +7,4 @@ if [ $? -ne 0 ]; then
echo "$0: cannot determine toplevel directory" 1>&2
exit 1
fi
-PYTHONPATH="$ROOTDIR" exec ./bin/ooniprobe "$@"
+PYTHONPATH="$ROOTDIR" exec $ROOTDIR/bin/ooniprobe "$@"
More information about the tor-commits
mailing list