[PythonCE] call scrypt with parameters
Luke Dunstan
coder_infidel at hotmail.com
Wed Oct 11 15:16:18 CEST 2006
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: pythonce at python.org
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
PythonCE at python.org
http://mail.python.org/mailman/listinfo/pythonce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonce/attachments/20061011/9130b5e8/attachment.html
More information about the PythonCE
mailing list