diff options
author | Araq <rumpf_a@web.de> | 2010-10-31 02:12:18 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2010-10-31 02:12:18 +0200 |
commit | 5055d307535e5e05e3ec5630107080a9aefbf2ea (patch) | |
tree | 926e9a83986c54fa7ceb2ba0923ab9439bd75a1c /tools/nimrepl.nim | |
parent | ec67d98286fcc8c550c6c747c937c5a8fceac749 (diff) | |
download | Nim-5055d307535e5e05e3ec5630107080a9aefbf2ea.tar.gz |
added os.findExe
Diffstat (limited to 'tools/nimrepl.nim')
-rwxr-xr-x | tools/nimrepl.nim | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/nimrepl.nim b/tools/nimrepl.nim index 989689add..432ca1356 100755 --- a/tools/nimrepl.nim +++ b/tools/nimrepl.nim @@ -14,18 +14,6 @@ when defined(tinyc): else: const runCmd = "c -r" -when not defined(findExe): - # candidate for the stdlib: - proc findExe(exe: string): string = - ## returns exe if the exe cannot be found - result = addFileExt(exe, os.exeExt) - if ExistsFile(result): return - var path = os.getEnv("PATH") - for candidate in split(path, pathSep): - var x = candidate / result - if ExistsFile(x): return x - result = "" - var nimExe = findExe("nimrod") if nimExe.len == 0: nimExe = "../bin" / addFileExt("nimrod", os.exeExt) |