int(sys.argv[1]) crashes plugin from home menu
#1
Hello, I am just following the tutorial right now. this one line "int(sys.argv[1])" seems to be causing my plugin to fail to load from the home menu. It runs perfectly fine when run from a folder. Other plugins fail when loaded from the home menu as a custom item too.

is there any way to fix this?

xbmc.log
Code:
18:46:17 T:2900568944 M:443015168  NOTICE: -->Python Interpreter Initialized<--
18:46:18 T:2900568944 M:441872384   ERROR: Error Type: exceptions.IndexError
18:46:18 T:2900568944 M:441872384   ERROR: Error Contents: list index out of range

line 14, in ?
                                                thisPlugin = int(sys.argv[1])
                                            IndexError: list index out of range
Reply
#2
problem solved in another thread.

was trying to run a plugin as a script.
Reply

Logout Mark Read Team Forum Stats Members Help
int(sys.argv[1]) crashes plugin from home menu0