diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-06-09 23:46:53 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-06-09 23:46:53 +0200 |
commit | 4c0503f9c1cc649c6bcd4d16bb84f184ddf195a8 (patch) | |
tree | 55827d2999141f230c4b3eb935a013538c37f8a5 /util.cpp | |
parent | df168f259378b10d4e2df3a65b3605b1dc7ae761 (diff) |
windows path is apparently semi-colon delimited
Diffstat (limited to 'util.cpp')
-rw-r--r-- | util.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -71,10 +71,15 @@ QString Util::findBinaryInPath(QString binary) if (_env.contains("PATH")) { QString path = _env.value("PATH"); - QStringList entries = path.split(':'); + QStringList entries; +#ifndef Q_OS_WIN + entries = path.split(':'); if (entries.length() < 2) { +#endif entries = path.split(';'); +#ifndef Q_OS_WIN } +#endif foreach(QString entry, entries) { QScopedPointer<QFileInfo> qfi(new QFileInfo(entry.append(binary))); |