On 11/09/2007, Ashley Booth <[EMAIL PROTECTED]> wrote: > I am trying to create a script that will get files from a directory > that the user specifies, then feeds the relevant input and output > (which are input and output paths) into another python script whose > path is also given by the user. I'm pretty lazy after all and I would > rather spend my time making tools than doing the busy-work myself.
Hi Ashley, You've basically got two options: 1. You can build a command line and then use os.system to call it: script2 = raw_input('python script path:') input, output = # whatever os.system('python %s %s %s' % (script2, input, output)) 2. You can import your second script and call its main function directly. How well this works will depend on the structure of the second script. -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor