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:
parent
9c7cbe9a7d
commit
c501098982
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue