From: Simon Forman Date: Thu, 22 Sep 2022 16:13:11 +0000 (-0700) Subject: Let's play with more cores. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=50293908d99ea82fb42b8a37d8fb774237e44633;hp=caa4461217a8ee23bdb0eca934e1d1ab0d64b706;p=joypy%2FThun.git Let's play with more cores. --- diff --git a/implementations/Python/joys.py b/implementations/Python/joys.py new file mode 100644 index 0000000..84eb37e --- /dev/null +++ b/implementations/Python/joys.py @@ -0,0 +1,11 @@ +import multiprocessing as mp +from joy import ( + initialize, + default_defs, + text_to_expression, + joy, + ) + + +if __name__ == '__main__': + mp.set_start_method('fork') diff --git a/implementations/Python/joy/__init__.py b/implementations/Python/ojoy/__init__.py similarity index 100% rename from implementations/Python/joy/__init__.py rename to implementations/Python/ojoy/__init__.py diff --git a/implementations/Python/joy/__main__.py b/implementations/Python/ojoy/__main__.py similarity index 100% rename from implementations/Python/joy/__main__.py rename to implementations/Python/ojoy/__main__.py diff --git a/implementations/Python/joy/defs.txt b/implementations/Python/ojoy/defs.txt similarity index 100% rename from implementations/Python/joy/defs.txt rename to implementations/Python/ojoy/defs.txt diff --git a/implementations/Python/joy/library.py b/implementations/Python/ojoy/library.py similarity index 100% rename from implementations/Python/joy/library.py rename to implementations/Python/ojoy/library.py diff --git a/implementations/Python/joy/utils/__init__.py b/implementations/Python/ojoy/utils/__init__.py similarity index 100% rename from implementations/Python/joy/utils/__init__.py rename to implementations/Python/ojoy/utils/__init__.py diff --git a/implementations/Python/joy/utils/snippets.py b/implementations/Python/ojoy/utils/snippets.py similarity index 100% rename from implementations/Python/joy/utils/snippets.py rename to implementations/Python/ojoy/utils/snippets.py