2013-10-29, 15:04
Hi everyone,
I wrote simple python code at /home/test.py location. I gave permission with
chmod a+x test.py
I setup cron working every minute with below code
*/1 * * * * /usr/bin/python /home/tesy.py
I tested this code under confluence as a script addons this is working w/o any problem.
On the XBMC home screen this code and cron give a message box every single minute.
But, problem is python not find xbmc, xbmcgui or xbmcplugin. What you think? Do you have any idea what's going on?
TEST.PY
------------------------------------------------------
import xbmc, xbmcplugin, xbmcgui
class MainClass(xbmcgui.Window):
def __init__(self):
self.message('Hi There')
def message(self, message):
dialog = xbmcgui.Dialog()
dialog.ok("Ebru Player", message)
mydisplay = MainClass()
mydisplay .doModal()
del mydisplay
I wrote simple python code at /home/test.py location. I gave permission with
chmod a+x test.py
I setup cron working every minute with below code
*/1 * * * * /usr/bin/python /home/tesy.py
I tested this code under confluence as a script addons this is working w/o any problem.
On the XBMC home screen this code and cron give a message box every single minute.
But, problem is python not find xbmc, xbmcgui or xbmcplugin. What you think? Do you have any idea what's going on?
TEST.PY
------------------------------------------------------
import xbmc, xbmcplugin, xbmcgui
class MainClass(xbmcgui.Window):
def __init__(self):
self.message('Hi There')
def message(self, message):
dialog = xbmcgui.Dialog()
dialog.ok("Ebru Player", message)
mydisplay = MainClass()
mydisplay .doModal()
del mydisplay