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))