2013-10-23, 05:08
I'm trying to make an addon that will run the subscription update functions of various other addons on custom timers, but i cannot find a way to run that function and then wait for it to finish before proceeding.
So currently I'm trying to get hulu to update subscriptions, and the appropriate process to execute is
and i need the code to then wait for it complete before continuing.
What ive tried so far is to run this with subprocess.call, but it fails because there is no python executable to run, the error is
WindowsError: [Error 2] The system cannot find the file specified
and i tried to import the python file i need to run processes from (xbmclibrary.py) with
which fails because the script cannot subsequently load its own modules located in
plugin.video.hulu/resources/lib
does anyone have a solution for this?
So currently I'm trying to get hulu to update subscriptions, and the appropriate process to execute is
Code:
xbmc.executebuiltin("RunPlugin(plugin://plugin.video.hulu/?mode='SubscriptionsLibrary')")
What ive tried so far is to run this with subprocess.call, but it fails because there is no python executable to run, the error is
WindowsError: [Error 2] The system cannot find the file specified
and i tried to import the python file i need to run processes from (xbmclibrary.py) with
Code:
sys.path.append(xbmc.translatePath('special://home/addons/plugin.video.hulu/resources/lib'))
import xbmclibrary as hulu
plugin.video.hulu/resources/lib
does anyone have a solution for this?