From c5010989826b6a1ff1d4f82431337e6df9650f70 Mon Sep 17 00:00:00 2001 From: Alexander Regueiro Date: Sun, 29 May 2022 03:04:26 +0100 Subject: [PATCH] Small fix when getting Python bundle path (#1854) --- bazarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr.py b/bazarr.py index b62fc27d8..5276bca39 100644 --- a/bazarr.py +++ b/bazarr.py @@ -33,7 +33,7 @@ def check_python_version(): def get_python_path(): if sys.platform == "darwin": # Do not run Python from within macOS framework bundle. - python_bundle_path = os.path.join(sys.exec_prefix, "Resources", "Python.app", "Contents", "MacOS", "Python") + python_bundle_path = os.path.join(sys.base_exec_prefix, "Resources", "Python.app", "Contents", "MacOS", "Python") if os.path.exists(python_bundle_path): import tempfile