From 3008c7a746be9e6c7298c382e78401f03a244ef4 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 9 Oct 2018 19:47:32 -0400 Subject: [PATCH] Fix for main.py not found --- bazarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr.py b/bazarr.py index 9e22a2ef9..48a822268 100644 --- a/bazarr.py +++ b/bazarr.py @@ -27,7 +27,7 @@ for opt, arg in opts: def start_bazarr(): - script = ['python','bazarr/main.py'] + globals()['arguments'] + script = [sys.executable, os.path.normcase(os.path.join(os.path.dirname(__file__), 'bazarr/main.py'))] + globals()['arguments'] pidfile = os.path.normcase(os.path.join(os.path.dirname(__file__), 'bazarr.pid')) if os.path.exists(pidfile):