Fix last fix - global variable recons_path
authorAnders Holst <aholst@users.schwerkraft.elitedvb.net>
Sat, 26 Dec 2009 14:59:31 +0000 (14:59 +0000)
committerAnders Holst <aholst@users.schwerkraft.elitedvb.net>
Sat, 26 Dec 2009 14:59:31 +0000 (14:59 +0000)
reconstructapsc/src_py/plugin.py

index 70314e9..b3a7c8b 100644 (file)
@@ -7,9 +7,10 @@ from Components.ActionMap import ActionMap
 from enigma import eTimer, eServiceCenter, iServiceInformation, eConsoleAppContainer
 from os import access, chmod, X_OK
 
+recons_path = "/usr/lib/enigma2/python/Plugins/Extensions/ReconstructApSc/bin/reconstruct_apsc"
+
 def main(session, service, **kwargs):
        # Hack to make sure it is executable
-       recons_path = "/usr/lib/enigma2/python/Plugins/Extensions/ReconstructApSc/bin/reconstruct_apsc"
        if not access(recons_path, X_OK):
                chmod(recons_path, 493)
        session.open(ReconstructApSc, service, **kwargs)