Merge pull request #593 from yglukhov/fix-findExe
Fixed findExe in nimscript
This commit is contained in:
commit
9e87cb77a8
2 changed files with 4 additions and 1 deletions
|
|
@ -155,6 +155,8 @@ proc setupVM(graph: ModuleGraph; module: PSym; scriptName: string, flags: Flags)
|
||||||
os.copyFile(getString(a, 0), getString(a, 1))
|
os.copyFile(getString(a, 0), getString(a, 1))
|
||||||
cbos getLastModificationTime:
|
cbos getLastModificationTime:
|
||||||
setResult(a, toUnix(getLastModificationTime(getString(a, 0))))
|
setResult(a, toUnix(getLastModificationTime(getString(a, 0))))
|
||||||
|
cbos findExe:
|
||||||
|
setResult(a, os.findExe(getString(a, 0)))
|
||||||
|
|
||||||
cbos rawExec:
|
cbos rawExec:
|
||||||
setResult(a, osproc.execCmd getString(a, 0))
|
setResult(a, osproc.execCmd getString(a, 0))
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ task repeated, "Testing `nimble c nimscript.nim` with repeated flags":
|
||||||
setCommand "c", "nimscript.nim"
|
setCommand "c", "nimscript.nim"
|
||||||
|
|
||||||
task api, "Testing nimscriptapi module functionality":
|
task api, "Testing nimscriptapi module functionality":
|
||||||
|
doAssert(findExe("nim").len != 0)
|
||||||
echo("PKG_DIR: ", getPkgDir())
|
echo("PKG_DIR: ", getPkgDir())
|
||||||
|
|
||||||
before hooks:
|
before hooks:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue