mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-30 03:03:57 +00:00
This commit is contained in:
committed by
Andreas Rumpf
parent
6737634d88
commit
c60916a2af
@@ -51,6 +51,12 @@ proc execCleanPath*(cmd: string,
|
||||
if execShellCmd(cmd) != 0: quit("FAILURE", errorcode)
|
||||
putEnv("PATH", prevPath)
|
||||
|
||||
let kochExe* = os.getAppFilename()
|
||||
# note: assumes `kochdocs` is only used by koch.nim
|
||||
|
||||
proc kochExec*(cmd: string) =
|
||||
exec kochExe.quoteShell & " " & cmd
|
||||
|
||||
proc nimexec*(cmd: string) =
|
||||
# Consider using `nimCompile` instead
|
||||
exec findNim() & " " & cmd
|
||||
|
||||
Reference in New Issue
Block a user