How execute at least two python files at once when imported?
Spencer Du
spencerdu at hotmail.co.uk
Wed Nov 6 04:51:41 EST 2019
On Tuesday, 5 November 2019 21:05:02 UTC+1, Terry Reedy wrote:
> 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
These are modules/files which are independent of each other and have no dependencies with one another. Because of this I want to run modules all at once.
More information about the Python-list
mailing list