[PythonCE] call scrypt with parameters

Fredy Cabre fredy9 at menta.net
Tue Oct 10 22:49:45 CEST 2006


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonce/attachments/20061010/e627fc03/attachment.htm 


More information about the PythonCE mailing list