Kodi Community Forum
Install python script (windows) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Install python script (windows) (/showthread.php?tid=93794)

Pages: 1 2


- `Black - 2011-02-20

Code:
NOTICE: Traceback (most recent call last):
NOTICE:   File "C:\Program Files (x86)\XBMC\addons\script.ljus\default.py", line 31, in onPlayBackResumed
NOTICE: os.execv("c:\dimtest.exe")
NOTICE: TypeError
NOTICE: :
NOTICE: execv() takes exactly 2 arguments (1 given)

There seems to be your problem.


- divingmule - 2011-02-20

From your log the script stops with:

Code:
INFO: Stopping script with id: 1
NOTICE: Traceback (most recent call last):
NOTICE:   File "C:\Program Files (x86)\XBMC\addons\script.ljus\default.py", line 31, in onPlayBackResumed
NOTICE: os.execv("c:\dimtest.exe")
NOTICE: TypeError
NOTICE: :
NOTICE: execv() takes exactly 2 arguments (1 given)

I'm not much help here but, maybe you changed something with the onPlayBackResumed function unintentionally.


- amet - 2011-02-20

Code:
os.execv("c:\dimtest.exe",())


should do the trick


- Evilgb - 2011-02-20

Tried that now, but nothing is still happening. Not when I start a movie, or run the program manually when a movie is running.

New log:
http://www.mediafire.com/?g4e2lvaojhkc959

Thanks all of you who is helping me Smile


- divingmule - 2011-02-21

From your log, when you where shutting down:

Code:
20:48:25 T:6808 M:3035512832  NOTICE: stop python
20:48:26 T:6460 M:3035717632    INFO: Scriptresult: Interrupted by user
20:48:26 T:6460 M:3035717632    INFO: Python script interrupted by user

Looks like it was running.

If you want your script to run at startup you have to set it up in advancesettings.xml . Search the fourm for that.