[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Make sure bin/ooniprobe-dev can be called from anywhere



commit 71c79a749cb4d77ab2df97260ef9e4f9faa87788
Author: Simone Basso <bassosimone@xxxxxxxxx>
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 "$@"



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits