PDA

View Full Version : [Windows] sys.argv AttributeError


olivelemalin
2009-02-25, 19:41
Hi,

I have an error when trying to use sys.argv in my python script.
I have imported sys

The error is :

AttributeError : 'module' object has no attribute 'argv'


But, for example sys.path works correctly.

I am using XBMC 8.10
Python 2.4.3

Regards

Nuka1195
2009-02-25, 20:00
sys.argv does not exists if you run the script directly from the scripts window.

if you need it, you will have to select a different script that runs it with the additional parameters.

xbmc.executebuiltin("XBMC.RunScript(scriptpath,args)")

olivelemalin
2009-02-26, 11:47
Thank you very much !

SOLVED