Koch now uses PATH/nimrod correctly

This commit is contained in:
Josh Girvin
2014-01-13 02:43:50 +10:00
parent fba0f33f1b
commit fb4a96ff78

View File

@@ -111,7 +111,7 @@ proc findStartNimrod: string =
result = "bin" / nimrod
if ExistsFile(result): return
for dir in split(getEnv("PATH"), PathSep):
if ExistsFile(dir / nimrod): return nimrod
if ExistsFile(dir / nimrod): return dir / nimrod
when defined(Posix):
const buildScript = "build.sh"
if ExistsFile(buildScript):