Not with os.startfile() , no; it does not provide communication with the running process. However, you can use the subprocess module; This will allow you to send data and receive data from a running process through standard input / output. Or, since the thing you want to call is another Python script, just import another file and call its functions directly or use execfile() .
source share