Skip to content

Commit

Permalink
add msys/bin to path
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5120 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Mar 30, 2006
1 parent 0d5e656 commit 2adc1d4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/providers/grass/qgsgrass.cpp
Expand Up @@ -27,6 +27,8 @@
#include "qsettings.h"
#include <QMessageBox>
#include <QCoreApplication>

#include "qgsapplication.h"
#include "qgsgrass.h"

extern "C" {
Expand Down Expand Up @@ -148,7 +150,6 @@ void QgsGrass::init( void )
QString sep = ";";
#else
QString sep = ":";

#endif
QString path = "PATH=" + gisBase + "/bin";
path.append ( sep + gisBase + "/scripts" );
Expand All @@ -162,6 +163,14 @@ void QgsGrass::init( void )
// is not initialized at this point
path.append ( sep + QCoreApplication::applicationDirPath() );
#endif

#ifdef WIN32
// Add path to MSYS bin
// Warning: MSYS sh.exe will translate this path to '/bin'
path.append ( sep + QCoreApplication::applicationDirPath()
+ "/msys/bin/" );
#endif

QString p = getenv ("PATH");
path.append ( sep + p );

Expand Down

0 comments on commit 2adc1d4

Please sign in to comment.