Re: call scrypt with parameters
"Luke Dunstan" <[email protected]>
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
Mensaje
In that case, it depends on how RunApp() is implemented. If it calls ShellExecuteEx() then I think it is not possible to pass parameters. Try this:
RunApp('\Program Files\python24\python.exe', '\mover_fotos.py \ - -')
Luke
----- Original Message -----
From: Fredy Cabre
To: [email protected]
Sent: Wednesday, October 11, 2006 4:49 AM
Subject: [PythonCE] call scrypt with parameters
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
_______________________________________________
PythonCE mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythonce