This commit is contained in:
Araq 2018-05-17 00:22:40 +02:00
commit 12b5a9a4d1
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ proc execScript(scriptName: string, flags: Flags, options: Options): PSym =
## Executes the specified script. Returns the script's module symbol.
##
## No clean up is performed and must be done manually!
graph = newModuleGraph()
graph = newModuleGraph(graph.config)
let conf = graph.config
when declared(NimCompilerApiVersion):

View file

@ -34,7 +34,7 @@ proc execNimble(args: varargs[string]): tuple[output: string, exitCode: int] =
var quotedArgs = @args
quotedArgs.insert(nimblePath)
quotedArgs.add("--nimbleDir:" & installDir)
quotedArgs = quoted_args.map((x: string) => ("\"" & x & "\""))
quotedArgs = quotedArgs.map((x: string) => ("\"" & x & "\""))
result = execCmdEx(quotedArgs.join(" "))
checkpoint(result.output)