This commit is contained in:
Araq
2019-01-15 23:07:51 +01:00
parent 7920dc2898
commit ece5887ab0

View File

@@ -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