Example #1
0
def start_process(target, *args, **kwargs):
    try:
        from gipc.gipc import _GProcess as Process
        from gipc.gipc import start_process as _start_process
        return _start_process(target, args=args, kwargs=kwargs)
    except ImportError:
        from multiprocessing import Process
        process = Process(target=target, args=args, kwargs=kwargs)
        process.start()
        return process
    def start_process(target, *args, **kwargs):
        from gipc.gipc import start_process as _start_process

        return _start_process(target, args=args, kwargs=kwargs)