I want to run a python script from another. Internally, I mean that any state change from a child script affects the parent state. Therefore, if a variable is set in a child, it changes in the parent.
You can usually do something like
import module
But the problem is that the executed child script is an argument of the parent script, I donโt think you can use import with a variable
Something like that
$python run.py child.py
That would be what I would expect
#run.py
source share