I hav codes eg1.py , eg2.py , eg3.py eg3.py imports eg2.py which in turn imports eg1.py
When i run eg3.py for first time everything is fine If i import it again and again only eg3.py runs
I need a solution for this.
I will code eg3.py in such a way that :
while(1): import eg2.py
Where I went wrong.Please give me a solution.
Do you want to execute the code in eg2.py when you import it? That is not a good solution. You should have a function containing your code in eg2.py and then execute this function in your while loop.
In eg2.py:
In eg3.py