mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
another attempt to fix https://github.com/nim-lang/nightlies/issues/17
This commit is contained in:
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`
|
||||
else: getAppDir() / "koch " # `best effort`, works for ur particular use case in nightly
|
||||
else: getAppDir() / "koch".exe # works for winrelease
|
||||
|
||||
proc kochExec*(cmd: string) =
|
||||
exec kochExe.quoteShell & " " & cmd
|
||||
|
||||
Reference in New Issue
Block a user