[Tutor] EXECUTING PYTHON AND SQL STAMENTS
Alan Gauld
alan.gauld at btinternet.com
Tue Oct 5 20:22:08 CEST 2010
"Susana Iraiis Delgado Rodriguez" <susana.delgado_s at utzmg.edu.mx>
wrote
> it throws me that "C:/Archivos" is not recognized as an executable
> external
> or internal command, programm or file.
You can only use / in paths used by Python.
You are passing this to the CMD processor via os.system so CMD
complains.
It expects / to indicate a command option (/? for example) You need to
use \ in
paths passed to CMD.
HTH,
Alan G.
PS I just noticed you switched to subprocess so this is now somewhat
academic!
More information about the Tutor
mailing list