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

Spencer Du spencerdu at hotmail.co.uk
Wed Nov 6 04:51:04 EST 2019


On Tuesday, 5 November 2019 19:41:59 UTC+1, Bob Gailer  wrote:
> On Nov 5, 2019 1:35 PM, "Spencer Du" <spencerdu at hotmail.co.uk> wrote:
> >
> > Hi
> >
> > 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?
> 
> Please explain what you mean by "imported at the same time". As far as I
> know that is physically impossible.

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