From 0b97802e2321bdc9bc666977c228d051f53e3eec Mon Sep 17 00:00:00 2001 From: Open Toontown <57279094+opentoontown@users.noreply.github.com> Date: Mon, 19 Sep 2022 15:52:30 -0400 Subject: [PATCH] makepanda: fix brew python location on apple silicon --- makepanda/makepandacore.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 44d836e82b..db88a511d0 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -2205,7 +2205,10 @@ def SdkLocatePython(prefer_thirdparty_python=False): if not os.path.exists(py_fwx): # Use Brew Python. - py_fwx = "/usr/local/opt/python@%s/Frameworks/Python.framework/Versions/%s" % (version, version) + if platform.machine() == 'arm64': + py_fwx = "/opt/homebrew/opt/python@%s/Frameworks/Python.framework/Versions/%s" % (version, version) + else: + py_fwx = "/usr/local/opt/python@%s/Frameworks/Python.framework/Versions/%s" % (version, version) if not os.path.exists(py_fwx): exit("Could not locate Python installation at %s" % (py_fwx))