We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414338f commit 2a29483Copy full SHA for 2a29483
1 file changed
src/providers/grass/qgsgrass.cpp
@@ -142,6 +142,14 @@ void GRASS_LIB_EXPORT QgsGrass::init( void )
142
// Use the applicationDirPath()/grass
143
gisBase = shortPath( QCoreApplication::applicationDirPath() + "/grass" );
144
QgsDebugMsg( QString( "GRASS gisBase = %1" ).arg( gisBase ) );
145
+#elif defined(Q_OS_MACX)
146
+ // check for bundled GRASS, fall back to configured path
147
+ gisBase = QCoreApplication::applicationDirPath().append("/grass") ;
148
+ if ( !isValidGrassBaseDir( gisBase ) )
149
+ {
150
+ gisBase = GRASS_BASE;
151
+ }
152
+ QgsDebugMsg( QString( "GRASS gisBase = %1" ).arg( gisBase ) );
153
#else
154
// Use the location specified --with-grass during configure
155
gisBase = GRASS_BASE;
0 commit comments