Test mode fixes
- don't test for pyqt in test mode - better exit (thanks @g1itch)
This commit is contained in:
parent
c3e7cf4f5c
commit
464b5b4f82
|
@ -325,12 +325,21 @@ class Main:
|
||||||
upnpThread = upnp.uPnPThread()
|
upnpThread = upnp.uPnPThread()
|
||||||
upnpThread.start()
|
upnpThread.start()
|
||||||
|
|
||||||
if daemon == False and BMConfigParser().safeGetBoolean('bitmessagesettings', 'daemon') == False:
|
if daemon == False and BMConfigParser().safeGetBoolean('bitmessagesettings', 'daemon') == False and not state.testmode:
|
||||||
if state.curses == False:
|
if state.curses == False:
|
||||||
if not depends.check_pyqt():
|
if not depends.check_pyqt():
|
||||||
print('PyBitmessage requires PyQt unless you want to run it as a daemon and interact with it using the API. You can download PyQt from http://www.riverbankcomputing.com/software/pyqt/download or by searching Google for \'PyQt Download\'. If you want to run in daemon mode, see https://bitmessage.org/wiki/Daemon')
|
sys.exit(
|
||||||
print('You can also run PyBitmessage with the new curses interface by providing \'-c\' as a commandline argument.')
|
'PyBitmessage requires PyQt unless you want to'
|
||||||
sys.exit()
|
' run it as a daemon and interact with it using'
|
||||||
|
' the API. You can download PyQt from'
|
||||||
|
' http://www.riverbankcomputing.com/software/pyqt/download'
|
||||||
|
' or by searching Google for \'PyQt Download\'.'
|
||||||
|
' If you want to run in daemon mode, see'
|
||||||
|
' https://bitmessage.org/wiki/Daemon\n'
|
||||||
|
'You can also run PyBitmessage with the'
|
||||||
|
' curses interface by providing \'-c\''
|
||||||
|
' as a commandline argument.'
|
||||||
|
)
|
||||||
|
|
||||||
import bitmessageqt
|
import bitmessageqt
|
||||||
bitmessageqt.run()
|
bitmessageqt.run()
|
||||||
|
|
Reference in New Issue
Block a user