From 5db309d142d3a02f2108196fd436709d0a04a6d4 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 23 Apr 2020 18:53:33 -0700 Subject: [PATCH] Do not inject libs into PYTHONPATH when installed using Windows/MacOS installer --- plexpy/notifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index b9bcec3f..77012317 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -3014,7 +3014,7 @@ class SCRIPTS(Notifier): if user_tokens and user_tokens['server_token']: custom_env['PLEX_USER_TOKEN'] = str(user_tokens['server_token']) - if self.pythonpath: + if self.pythonpath and plexpy.INSTALL_TYPE not in ('windows', 'macos'): custom_env['PYTHONPATH'] = os.pathsep.join([p for p in sys.path if p]) if plexpy.PYTHON2: