yet more path recognition variant

This commit is contained in:
Anatol Belski
2017-08-17 16:33:32 +02:00
parent d158c3c032
commit e7e92b35d0
+11 -3
View File
@@ -309,12 +309,20 @@ class Config
} }
if (NULL == self::$depsLocalPath || $reset) { if (NULL == self::$depsLocalPath || $reset) {
if (file_exists("../deps")) { $tmp = dirname(getcwd()) . DIRECTORY_SEPARATOR . "deps";
self::setDepsLocalPath(realpath("../deps")); if (is_dir($tmp)) {
self::setDepsLocalPath($tmp);
}
}
if (NULL == self::$depsLocalPath || $reset) {
$tmp = realpath("../deps");
if (is_dir($tmp)) {
self::setDepsLocalPath($tmp);
} }
} }
if (NULL == self::$depsLocalPath || $reset) { if (NULL == self::$depsLocalPath) {
if (file_exists("main/php_version.h")) { if (file_exists("main/php_version.h")) {
/* Deps dir might not exist. */ /* Deps dir might not exist. */
self::setDepsLocalPath(realpath("..") . DIRECTORY_SEPARATOR . "deps"); self::setDepsLocalPath(realpath("..") . DIRECTORY_SEPARATOR . "deps");