2 # -*- coding: utf-8 -*-
4 # This file is part of BridgeDB, a Tor bridge distribution system.
6 # :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org>
7 # please also see AUTHORS file
8 # :copyright: (c) 2007-2013, The Tor Project, Inc.
9 # (c) 2007-2013, all entities within the AUTHORS file
10 # :license: 3-clause BSD, see included LICENSE for information
12 from __future__ import print_function
19 from bridgedb.main import run
20 from bridgedb.parse.options import parseOptions
23 option = parseOptions()
25 if option.subCommand is not None:
26 # Hack to set the PYTHONPATH:
27 sys.path[:] = map(os.path.abspath, sys.path)
28 sys.path.insert(0, os.path.abspath(getcwd()))
29 sys.path.insert(0, os.path.abspath(os.path.join(getcwd(), '..')))