2018-01-24 17:43:35 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-03-04 12:29:25 -06:00
|
|
|
from __future__ import unicode_literals # at top of module
|
|
|
|
import sys
|
|
|
|
if sys.version[0] == "2":
|
2018-03-12 09:28:21 -06:00
|
|
|
if hasattr(sys, "frozen"):
|
|
|
|
import fixes
|
|
|
|
fixes.setup()
|
2018-01-24 17:43:35 -06:00
|
|
|
import i18n
|
2018-02-28 13:50:31 -06:00
|
|
|
i18n.setup()
|
2018-01-24 17:43:35 -06:00
|
|
|
import widgetUtils
|
|
|
|
import logging
|
|
|
|
import application
|
|
|
|
from platform_utils import paths
|
|
|
|
|
|
|
|
logging.basicConfig()
|
|
|
|
log = logging.getLogger("main")
|
|
|
|
|
|
|
|
def setup():
|
|
|
|
log.debug("Starting music-dl %s" % (application.version,))
|
|
|
|
log.debug("Application path is %s" % (paths.app_path(),))
|
|
|
|
from controller import mainController
|
|
|
|
app = widgetUtils.mainLoopObject()
|
|
|
|
log.debug("Created Application mainloop object")
|
|
|
|
r = mainController.Controller()
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
setup()
|