Skip to content

Commit

Permalink
set GISBASE on WIN
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4791 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 1, 2006
1 parent 7dd90a8 commit 5d8784c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/providers/grass/qgsgrass.cpp
Expand Up @@ -86,10 +86,20 @@ void QgsGrass::init( void )
}

if ( !isValidGrassBaseDir(gisBase) ) {
#ifdef WIN32
// Use the applicationDirPath()/grass
gisBase = QCoreApplication::applicationDirPath() + "/grass";
#ifdef QGISDEBUG
std::cerr << "GRASS gisBase = " << gisBase.ascii() << std::endl;
#endif

#else
// Use the location specified --with-grass during configure
gisBase = GRASS_BASE;
#ifdef QGISDEBUG
qDebug( "%s:%d GRASS gisBase from configure is: %s", __FILE__, __LINE__, (const char*)gisBase );
#endif

#endif
}

Expand Down

0 comments on commit 5d8784c

Please sign in to comment.