Hello everybody,
I have the following problem:
I have two scripts:
The main script:
Is there any way to solve this?
Thank you !
I have the following problem:
I have two scripts:
The main script:
import multiprocessing import time import module def runModule(): module def main(): p = multiprocessing.Process(target=runModule) p.start() time.sleep(10) p.terminate() if __name__ == '__main__': main()and the module script:
from time import sleep for i in range(100): print i sleep(1)The problem is the running module doesn't stop after 10s.
Is there any way to solve this?
Thank you !