Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1691

Help coding: wait sessin.open exit

$
0
0

Hi, 

i have this code:

from Plugins.Plugin import PluginDescriptor
from Screens.Console import Console
from enigma import eEPGCache

cmd = "/etc/enigma2/script.sh"

def main(session, **kwargs):
		session.open(Console,_("My script"),[cmd])
		epgcache = eEPGCache.getInstance()
		epgcache.load()

.....

I would call epgcache.load() AFTER Console exit, that is after the script is executed. While now it seems that session.open is not blocking.

I'm a newbie in python, so sorry if it is a stupid question.

 

Other question: is there a way to call epgcache.load() using shell?

 

 

Thanks


Viewing all articles
Browse latest Browse all 1691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>