From 2625ef5fb92d328a5f62ea850f294dcf658e6acb Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 3 Jul 2020 19:48:27 -0700 Subject: [PATCH] Use Popen to restart on macOS --- plexpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 2bc29f39..6c44d765 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -2233,7 +2233,7 @@ def shutdown(restart=False, update=False, checkout=False, reset=False): # https://bugs.python.org/issue19066 if NOFORK: pass - elif common.PLATFORM == 'Windows': + elif common.PLATFORM in ('Windows', 'Darwin'): subprocess.Popen(args, cwd=os.getcwd()) else: os.execv(exe, args)