Fixed getPkgDir
This commit is contained in:
parent
e7f8cb6c81
commit
5fcd7e5965
3 changed files with 9 additions and 2 deletions
|
|
@ -388,7 +388,7 @@ proc execScript(scriptName: string, flags: Flags, options: Options): PSym =
|
|||
|
||||
# Setup builtins defined in nimscriptapi.nim
|
||||
template cbApi(name, body) {.dirty.} =
|
||||
vm.globalCtx.registerCallback pkgName & "." & astToStr(name),
|
||||
vm.globalCtx.registerCallback "nimscriptapi." & astToStr(name),
|
||||
proc (a: VmArgs) =
|
||||
body
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue