Skip to content

Commit ef53c2f

Browse files
author
rblazek
committed
split path by ':' on Unix
git-svn-id: http://svn.osgeo.org/qgis/trunk@5416 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fd92f81 commit ef53c2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/grass/qgsgrassmodule.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ QString QgsGrassModule::findExec ( QString file )
112112
QString path = getenv("PATH");
113113
std::cerr << "path = " << path.ascii() << std::endl;
114114

115+
#ifdef WIN32
115116
mExecPath = path.split ( ";" );
117+
#else
118+
mExecPath = path.split ( ":" );
119+
#endif
116120
mExecPath.prepend ( QgsApplication::applicationDirPath() );
117121
mExecPathInited = true;
118122
}

0 commit comments

Comments
 (0)