Ugly hack to make sure mcut is executable
authorAnders Holst <aholst@users.schwerkraft.elitedvb.net>
Mon, 21 Jul 2008 23:37:52 +0000 (23:37 +0000)
committerAnders Holst <aholst@users.schwerkraft.elitedvb.net>
Mon, 21 Jul 2008 23:37:52 +0000 (23:37 +0000)
moviecut/src_cc/Makefile.am
moviecut/src_py/plugin.py

index 9c58c14..5a767dc 100644 (file)
@@ -4,4 +4,4 @@ bin_PROGRAMS = mcut
 
 mcut_SOURCES = mcut.cc
 
-install_PYTHON = mcut
\ No newline at end of file
+install_DATA = mcut
index 0a8e572..61c73b7 100644 (file)
@@ -11,9 +11,12 @@ from Components.Button import Button
 from Components.Label import Label
 from Components.Pixmap import Pixmap
 from enigma import eTimer, eServiceReference, eServiceCenter, iServiceInformation, eConsoleAppContainer
-from os import WIFEXITED, WEXITSTATUS
+from os import access, chmod, X_OK
 
 mcut_path = "/usr/lib/enigma2/python/Plugins/Extensions/MovieCut/bin/mcut"
+# Hack to make sure it is executable
+if not access(mcut_path, X_OK):
+       chmod(mcut_path, 493)
 
 def main(session, service, **kwargs):
        session.open(MovieCut, service, **kwargs)