another attempt to fix https://github.com/nim-lang/nightlies/issues/17
This commit is contained in:
parent
7920dc2898
commit
ece5887ab0
1 changed files with 1 additions and 1 deletions
2
koch.nim
2
koch.nim
|
|
@ -75,7 +75,7 @@ Web options:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
let kochExe* = when isMainModule: os.getAppFilename() # always correct when koch is main program, even if `koch` exe renamed eg: `nim c -o:koch_debug koch.nim`
|
let kochExe* = when isMainModule: os.getAppFilename() # always correct when koch is main program, even if `koch` exe renamed eg: `nim c -o:koch_debug koch.nim`
|
||||||
else: getAppDir() / "koch " # `best effort`, works for ur particular use case in nightly
|
else: getAppDir() / "koch".exe # works for winrelease
|
||||||
|
|
||||||
proc kochExec*(cmd: string) =
|
proc kochExec*(cmd: string) =
|
||||||
exec kochExe.quoteShell & " " & cmd
|
exec kochExe.quoteShell & " " & cmd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue