Try and fix mac.

This commit is contained in:
Adam Treat 2023-06-05 09:30:50 -04:00
parent 45eca601c7
commit b7d947b01d

View File

@ -27,8 +27,12 @@ LLM::LLM()
{
QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
#if defined(Q_OS_MAC)
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../../../";
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../Frameworks/";
const QString binDir = QCoreApplication::applicationDirPath() + "/../../../";
if (directoryExists(binDir)
llmodelSearchPaths += ";" + binDir;
const QString frameworksDir = QCoreApplication::applicationDirPath() + "/../Frameworks/";
if (directoryExists(frameworksDir)
llmodelSearchPaths += ";" + frameworksDir;
#endif
LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString());