Skip to content
Permalink
Browse files

add msys/bin to path

git-svn-id: http://svn.osgeo.org/qgis/trunk@5120 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Mar 30, 2006
1 parent aa93b65 commit 4e7215b059d9fb674e33e97d1be5a628a9578435
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/providers/grass/qgsgrass.cpp
@@ -27,6 +27,8 @@
#include "qsettings.h"
#include <QMessageBox>
#include <QCoreApplication>

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

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

#endif
QString path = "PATH=" + gisBase + "/bin";
path.append ( sep + gisBase + "/scripts" );
@@ -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 );

0 comments on commit 4e7215b

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