diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 1bc9b1614..359268ac0 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -3053,7 +3053,8 @@ def run_script(self, script): }) if self.pythonpath: - env['PYTHONPATH'] = os.pathsep.join([p for p in sys.path if p]) + env['PYTHONPATH'] = os.path.dirname(sys.executable) + ';' + os.pathsep.join([p for p in sys.path if p]) + env['PATH'] = env['PYTHONPATH'] try: process = subprocess.Popen(script,