aboutsummaryrefslogtreecommitdiffstats
path: root/lvc/windows/exe_main.py
blob: a3c9dfdcb03f301bbfba157ea481f27fcd46ed0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
import sys

from lvc import settings
from lvc.windows import autoupdate
from lvc.widgets import app
from lvc.widgets import initialize
from lvc.ui.widgets import Application

# before anything else, settup logging
from lvc.windows import exelogging
exelogging.setup_logging()

# add the directories for ffmpeg and avconv to our search path
exe_dir = os.path.dirname(sys.executable)
settings.add_to_search_path(os.path.join(exe_dir, 'ffmpeg'))
settings.add_to_search_path(os.path.join(exe_dir, 'avconv'))
# run the app
app.widgetapp = Application()
app.widgetapp.connect("window-shown", lambda w: autoupdate.startup())
initialize(app.widgetapp)
autoupdate.shutdown()