Improves pre and post hooks. Fixes #524.
This commit is contained in:
parent
2e803ec9cf
commit
db222bbae1
4 changed files with 107 additions and 76 deletions
|
|
@ -362,7 +362,7 @@ proc execScript(scriptName: string, flags: Flags, options: Options): PSym =
|
|||
|
||||
# Ensure that "nimblepkg/nimscriptapi" is in the PATH.
|
||||
block:
|
||||
let t = options.getNimbleDir / "nimblecache"
|
||||
let t = getTempDir() / "nimblecache"
|
||||
let tmpNimscriptApiPath = t / "nimblepkg" / "nimscriptapi.nim"
|
||||
createDir(tmpNimscriptApiPath.splitFile.dir)
|
||||
writeFile(tmpNimscriptApiPath, nimscriptApi)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue