How execute at least two python files at once when imported?

Terry Reedy tjreedy at udel.edu
Tue Nov 5 15:04:25 EST 2019


On 11/5/2019 1:33 PM, Spencer Du wrote:

> I want to execute at least two python files at once when imported but I dont know how to do this. Currently I can only import each file one after another but what i want is each file to be imported at the same time. Can you help me write the code for this? embedded.py is the main file to execute.

[snip about 150 lines of example code]

We don't understand what you mean other than something impossible.  Your 
example code is    w    a   y    too long.  It should be the minimum 
needed to illustrate the idea.

-- 
Terry Jan Reedy



More information about the Python-list mailing list