Do not inject libs into PYTHONPATH when installed using Windows/MacOS installer

This commit is contained in:
JonnyWong16 2020-04-23 18:53:33 -07:00
parent 5d8a7d80eb
commit 5db309d142
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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: