Close application if not daemon and PyQt not found

This commit is contained in:
Jonathan Warren 2013-05-05 17:52:57 -04:00
parent a4beb436a4
commit 7ba2a4f18b

View File

@ -3930,7 +3930,7 @@ if __name__ == "__main__":
except Exception, err:
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'
print 'Error message:', err
sys.exit()
os._exit(0)
import bitmessageqt
bitmessageqt.run()