I have 2 python scripts. Is it possible to somehow run the second script from the first in parallel?
How to return a value from the second script to the first?
For example:
#script 1
def train():
.......
return True
and
#script 2
t = threading.Thread(target=train.train)
t.start()
You must close the process when the function returns true. How to solve this problem?