From 5055d307535e5e05e3ec5630107080a9aefbf2ea Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 31 Oct 2010 02:12:18 +0200 Subject: added os.findExe --- tools/nimrepl.nim | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tools/nimrepl.nim') 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) -- cgit 1.4.1-2-gfad0