mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
Don't prepend project path to absolute filenames passed to setCommand (#5341)
This commit is contained in:
committed by
Andreas Rumpf
parent
072d79511f
commit
4c4f6541d9
@@ -110,10 +110,13 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
|
||||
let arg = a.getString 1
|
||||
if arg.len > 0:
|
||||
gProjectName = arg
|
||||
let path =
|
||||
if gProjectName.isAbsolute: gProjectName
|
||||
else: gProjectPath / gProjectName
|
||||
try:
|
||||
gProjectFull = canonicalizePath(gProjectPath / gProjectName)
|
||||
gProjectFull = canonicalizePath(path)
|
||||
except OSError:
|
||||
gProjectFull = gProjectName
|
||||
gProjectFull = path
|
||||
cbconf getCommand:
|
||||
setResult(a, options.command)
|
||||
cbconf switch:
|
||||
|
||||
Reference in New Issue
Block a user