Fix last fix - global variable recons_path
[vuplus_dvbapp-plugin] / 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)