blob: bd171d3eac6a00daefd10ad058d05373b085f538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# before anything else, settup logging
from mvc.windows import exelogging
exelogging.setup_logging()
import os
import sys
from mvc import settings
from mvc.windows import autoupdate
from mvc.widgets import app
from mvc.widgets import initialize
from mvc.ui.widgets import Application
# 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()
|