Fixed finExe in nimscript
This commit is contained in:
parent
119be481df
commit
22485bbd6a
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:
|
||||||
|
|
@ -48,4 +49,4 @@ before install:
|
||||||
echo("Before PkgDir: ", getPkgDir())
|
echo("Before PkgDir: ", getPkgDir())
|
||||||
|
|
||||||
after install:
|
after install:
|
||||||
echo("After PkgDir: ", getPkgDir())
|
echo("After PkgDir: ", getPkgDir())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue