Skip to content
Permalink
Browse files

check for bundled GRASS for gisbase on OS X

  • Loading branch information
kyngchaos committed Aug 17, 2013
1 parent 414338f commit 2a294834b238cee4c5f3ae4ccb3e385d623c51e5
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/providers/grass/qgsgrass.cpp
@@ -142,6 +142,14 @@ void GRASS_LIB_EXPORT QgsGrass::init( void )
// Use the applicationDirPath()/grass
gisBase = shortPath( QCoreApplication::applicationDirPath() + "/grass" );
QgsDebugMsg( QString( "GRASS gisBase = %1" ).arg( gisBase ) );
#elif defined(Q_OS_MACX)
// check for bundled GRASS, fall back to configured path
gisBase = QCoreApplication::applicationDirPath().append("/grass") ;
if ( !isValidGrassBaseDir( gisBase ) )
{
gisBase = GRASS_BASE;
}
QgsDebugMsg( QString( "GRASS gisBase = %1" ).arg( gisBase ) );
#else
// Use the location specified --with-grass during configure
gisBase = GRASS_BASE;

0 comments on commit 2a29483

Please sign in to comment.
You can’t perform that action at this time.