Skip to content

Instantly share code, notes, and snippets.

View TWRogers's full-sized avatar
😄

Thomas Rogers TWRogers

😄
View GitHub Profile
@stuaxo
stuaxo / processify.py
Last active July 12, 2024 08:32 — forked from schlamar/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