#!/usr/bin/env python
# -*- encoding: utf-8 -*-
###############################################################################
#
# canary
# -----------------
# Test Tor bridge reachability.
#
# :authors: Isis Lovecruft
# :copyright: 2012 Isis Lovecruft, The Tor Project
# :licence: see included LICENSE file
# :version: 0.2.0-beta
###############################################################################

import os, sys
import copy_reg

# Hack to set the proper sys.path. Overcomes the export PYTHONPATH pain.
sys.path[:] = map(os.path.abspath, sys.path)
sys.path.insert(0, os.path.abspath(os.getcwd()))

# This is a hack to overcome a bug in python
from ooni.utils.hacks import patched_reduce_ex
copy_reg._reduce_ex = patched_reduce_ex

from ooni.bridget import spelunker
spelunker.descend()
