1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-22 15:54:26 +00:00

Small fix when getting Python bundle path (#1854)

This commit is contained in:
Alexander Regueiro 2022-05-29 03:04:26 +01:00 committed by GitHub
parent 9c7cbe9a7d
commit c501098982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ def check_python_version():
def get_python_path(): def get_python_path():
if sys.platform == "darwin": if sys.platform == "darwin":
# Do not run Python from within macOS framework bundle. # 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): if os.path.exists(python_bundle_path):
import tempfile import tempfile