I have a serie of scripts that run one after the other. In one of them i try to import variable from the first one. The problem is that when that variable is imported the whole first script gets executed. In the first script i have:
various commands
x = result of these commands
On the other script i have:
from first script import x
various other commands
y = z + x
When this line is called the first script get executed..
Why is that? Is this technically wrong??