aboutsummaryrefslogtreecommitdiffstats
path: root/lvc/windows/exe_main.py
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2017-09-11 17:47:17 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2017-09-11 17:47:17 -0500
commit14738704ede6dfa6ac79f362a9c1f7f40f470cdc (patch)
tree31c83bdd188ae7b64d7169974d6f066ccfe95367 /lvc/windows/exe_main.py
parenteb1896583afbbb622cadcde1a24e17173f61904f (diff)
downloadlibrevideoconverter-14738704ede6dfa6ac79f362a9c1f7f40f470cdc.tar.lz
librevideoconverter-14738704ede6dfa6ac79f362a9c1f7f40f470cdc.tar.xz
librevideoconverter-14738704ede6dfa6ac79f362a9c1f7f40f470cdc.zip
rename mvc at lvc
Diffstat (limited to 'lvc/windows/exe_main.py')
-rwxr-xr-xlvc/windows/exe_main.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/lvc/windows/exe_main.py b/lvc/windows/exe_main.py
new file mode 100755
index 0000000..66b97a5
--- /dev/null
+++ b/lvc/windows/exe_main.py
@@ -0,0 +1,22 @@
+# before anything else, settup logging
+from lvc.windows import exelogging
+exelogging.setup_logging()
+
+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
+
+# 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()