diff --git a/jimm.py b/jimm.py new file mode 100644 index 0000000..8cf27a4 --- /dev/null +++ b/jimm.py @@ -0,0 +1,13 @@ +import os, asyncio, contextlib, multiprocessing + +unsafe = contextlib.suppress(Exception) + +with unsafe: + asyncio.get_running_loop() + asyncio.run = lambda main: threading.Thread( + target=lambda: asyncio.runners.run(main)).start() + +def go(func, *args, **kwargs): + multiprocessing.Process(target=func, args=args, kwargs=kwargs).start() + +os.environ['DISPLAY'] = ':0' \ No newline at end of file