call scrypt with parameters

"Fredy Cabre" <[email protected]>
Newsgroups gmane.comp.python.windows-ce
Message-ID <000501c6ecad$a2464790$0202fea9@portfredy>
This is the call to the scrypt wich have 3 parameters:
 
    RunApp('\mover_fotos.py','\ - -')
---------------------------------------------------------------
 
This is the beginning of the scrypt:
     
    # -*- coding: cp1252 -*-

    import glob, shutil
    import os
    import sys

    i=0
    ruta_Origen=sys.argv[1]
    ruta_Desti=sys.argv[2]
    nom_Fich=sys.argv[3]
-----------------------------------------------------------------
 
the error that give me:
 
    ruta_origen=sys.argv[1]
    exceptions.Indexerror: list index out of range.

_______________________________________________
PythonCE mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythonce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.