Nimrod can now compile itself with --lineDir enabled

This commit is contained in:
Zahary Karadjov 2011-09-09 04:37:35 +03:00
commit 0f0dfd6379
7 changed files with 25 additions and 12 deletions

View file

@ -66,7 +66,8 @@ proc HandleCmdLine() =
var filename = ""
ProcessCmdLine(passCmd1, command, filename)
if filename != "":
var p = splitFile(filename)
var fullPath = expandFilename(filename)
var p = splitFile(fullPath)
options.projectPath = p.dir
options.projectName = p.name
nimconf.LoadConfig(filename) # load the right config file