Calling python script in dos and passing arguments

PEnergy prquinn at gmail.com
Tue Apr 16 10:14:09 EDT 2013


Greetings,

I am trying to write a python script that, when called from the DOS prompt, will call another python script and pass it input variables.  My current code will open the other python script but doesn't seem to pass it any values:

import os,sys,subprocess
subprocess.Popen(['python.exe','C:\NDEX\GRE2\uip\uip_20.py','t3c*'])

Am I missing something or is this type of call not possible through DOS?

Thanks,
PEnergy



More information about the Python-list mailing list