Skip to content

Commit

Permalink
Issue when multiple versions of python are installed.
Browse files Browse the repository at this point in the history
Ensure notifier invokes same python executable as what Tautulli was started with.
  • Loading branch information
zSeriesGuy committed Sep 19, 2020
1 parent a360c22 commit f53069c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plexpy/notifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f53069c

Please sign in to comment.