I don't know if this is the type of thing you have in mind, but let's take a simpler example: I want to allow the user to input a filepath and print the directory of that path.
import os
pathname = raw_input('Which path do you want to list? ')
os.system('dir %s' % pathname)
raw_input('press <Enter> to exit')
If I run this from the command line or by double-clicking (but not from IDLE), then I can get the usual dir output.
Your example is a bit longer, but it uses the same concepts in principle: raw_input or some other means to collect the parameters, %s to interpolate them into the command string, and os.system() to execute the command string.
Hope I'm on the right track,
Jeff
jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156