Convert \s in Windows POLYMC_JAVA_PATHS
Allows you to use either `\` or `/` on Windows
This commit is contained in:
parent
87cf38a377
commit
4d8bf0b621
@ -153,7 +153,7 @@ QStringList addJavasFromEnv(QList<QString> javas)
|
|||||||
{
|
{
|
||||||
QByteArray env = qgetenv("POLYMC_JAVA_PATHS");
|
QByteArray env = qgetenv("POLYMC_JAVA_PATHS");
|
||||||
#if defined(Q_OS_WIN32)
|
#if defined(Q_OS_WIN32)
|
||||||
QList<QString> javaPaths = QString::fromLocal8Bit(env).split(QLatin1String(";"));
|
QList<QString> javaPaths = QString::fromLocal8Bit(env).replace("\\", "/").split(QLatin1String(";"));
|
||||||
#else
|
#else
|
||||||
QList<QString> javaPaths = QString::fromLocal8Bit(env).split(QLatin1String(":"));
|
QList<QString> javaPaths = QString::fromLocal8Bit(env).split(QLatin1String(":"));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user