lbry-sdk/packaging/osx/lbry-osx-app/lbrygui/main.py
Job Evers-Meltzer 7de4340c38 lint the osx and windows apps
This also fixes a trivial bug in the osx release.
2016-11-01 15:39:50 -05:00

26 lines
637 B
Python

from PyObjCTools import AppHelper
from twisted.internet.cfreactor import install
install(runner=AppHelper.runEventLoop)
from twisted.internet import reactor
import logging
from lbrynet import conf
from lbrynet.core import log_support
from LBRYApp import LBRYDaemonApp
log = logging.getLogger()
def main():
conf.update_settings_from_file()
log_file = conf.settings.get_log_filename()
log_support.configure_logging(log_file, console=True)
app = LBRYDaemonApp.sharedApplication()
reactor.addSystemEventTrigger("after", "shutdown", AppHelper.stopEventLoop)
reactor.run()
if __name__ == "__main__":
main()