blob: a09d9366ca3bbef8ba70972cbe736ad757c250af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#
# Copyright (C) 2008-2009 Ido Abramovich <ido.deluge@gmail.com>
#
# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
# the additional special exception to link portions of this program with the OpenSSL library.
# See LICENSE for more details.
#
from deluge.ui.console.console import Console
UI_PATH = __path__[0]
def start():
Console().start()
def test_start():
"""Entry point for tests
A workaround for unit tests which require a deferred object to be
returned to run properly due to mocking the Twisted reactor.
"""
return Console().start()
|