This commit is contained in:
parent
6737634d88
commit
c60916a2af
4 changed files with 53 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue