summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2020-04-23 07:26:06 +0000
committerGitHub <noreply@github.com>2020-04-23 09:26:06 +0200
commit4b43d42b98518e7b6cf66d00932394e7fa0a8ab4 (patch)
treeb5d06a9ac2a4cf41960188dddb38837728189da6
parent0b4a475f2ee0f80e7d621e861bb85731797206be (diff)
downloadNim-4b43d42b98518e7b6cf66d00932394e7fa0a8ab4.tar.gz
testament: don't rely on Nim source structure [backport:1.2] (#14077)
It's also just faster to get the current file name instead of scanning
the PATH.
-rw-r--r--testament/testament.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/testament/testament.nim b/testament/testament.nim
index f01f3c6c9..f83b244c2 100644
--- a/testament/testament.nim
+++ b/testament/testament.nim
@@ -679,7 +679,7 @@ proc main() =
   of "all":
     #processCategory(r, Category"megatest", p.cmdLineRest.string, testsDir, runJoinableTests = false)
 
-    var myself = quoteShell(findExe("testament" / "testament"))
+    var myself = quoteShell(getAppFilename())
     if targetsStr.len > 0:
       myself &= " " & quoteShell("--targets:" & targetsStr)