Skip to content

Instantly share code, notes, and snippets.

@ddofborg
ddofborg / processify.py
Created April 29, 2023 21:20 — forked from stuaxo/processify.py
processify
# modified from https://gist.github.com/schlamar/2311116#file-processify-py-L17
# also see http://stackoverflow.com/questions/2046603/is-it-possible-to-run-function-in-a-subprocess-without-threading-or-writing-a-se
import inspect
import os
import sys
import traceback
from functools import wraps
from multiprocessing import Process, Queue