Files
openide/python/testData/debug/test_multiprocess_args.py
Andrey Lisin 11c4b3a9be PY-60597 Clean up test data script
GitOrigin-RevId: 5ba5b6f38ea316c3c9bffeb82b4576e31d1e3c78
2024-06-21 13:48:29 +00:00

16 lines
410 B
Python

import time
import multiprocessing
import subprocess
import sys
import os
def run(name):
dir_path = os.path.dirname(os.path.realpath(__file__))
subprocess.Popen(('%s' % sys.executable, os.path.join(dir_path, "test_multiprocess_args_child.py"), name, "etc etc"))
if __name__ == '__main__':
multiprocessing.Process(target=run, args=("subprocess",)).start()
while True:
time.sleep(0.1)