preparations of making compiler/msgs.nim free of global variables
This commit is contained in:
parent
2a7fc84c86
commit
bf6c2c5ccf
38 changed files with 179 additions and 183 deletions
|
|
@ -11,7 +11,7 @@ import ast, types, msgs, os, streams, options, idents
|
|||
|
||||
proc opSlurp*(file: string, info: TLineInfo, module: PSym; conf: ConfigRef): string =
|
||||
try:
|
||||
var filename = parentDir(info.toFullPath) / file
|
||||
var filename = parentDir(toFullPath(conf, info)) / file
|
||||
if not fileExists(filename):
|
||||
filename = findFile(conf, file)
|
||||
result = readFile(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue