Merge pull request #492 from nim-lang/araq-hotfix-task-execution

fixes #491
This commit is contained in:
Dominik Picheta 2018-05-17 13:51:26 +01:00 committed by GitHub
commit 68fb7837e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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. ## Executes the specified script. Returns the script's module symbol.
## ##
## No clean up is performed and must be done manually! ## No clean up is performed and must be done manually!
graph = newModuleGraph() graph = newModuleGraph(graph.config)
let conf = graph.config let conf = graph.config
when declared(NimCompilerApiVersion): when declared(NimCompilerApiVersion):

View file

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