mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
16 lines
410 B
Python
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)
|