summary refs log tree commit diff stats
path: root/lib/pure/os.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-01 21:35:46 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-01 21:35:46 +0200
commit3bc7dbbd9757750fc4c75581891abb8e9849eab7 (patch)
tree4fcd8c24bc8e900d3dc79fed62848674800d2e8f /lib/pure/os.nim
parenta43eae8e6c77149be77082388bb0fa546b9c97a7 (diff)
downloadNim-3bc7dbbd9757750fc4c75581891abb8e9849eab7.tar.gz
os.nim: revert findExe 'improvement' that breaks our builds
Diffstat (limited to 'lib/pure/os.nim')
-rw-r--r--lib/pure/os.nim7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index a14976d53..b85181edf 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -141,12 +141,7 @@ proc findExe*(exe: string, followSymlinks: bool = true;
   ## meets the actual file. This behavior can be disabled if desired.
   for ext in extensions:
     result = addFileExt(exe, ext)
-    if existsFile(result):
-      # on Posix ensure we do not yield binaries in the cwd:
-      when defined(posix):
-        if isAbsolute(result): return
-      else:
-        return
+    if existsFile(result): return
   var path = string(getEnv("PATH"))
   for candidate in split(path, PathSep):
     when defined(windows):