Don't prepend project path to absolute filenames passed to setCommand (#5341)
This commit is contained in:
parent
072d79511f
commit
4c4f6541d9
1 changed files with 5 additions and 2 deletions
|
|
@ -110,10 +110,13 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
|
||||||
let arg = a.getString 1
|
let arg = a.getString 1
|
||||||
if arg.len > 0:
|
if arg.len > 0:
|
||||||
gProjectName = arg
|
gProjectName = arg
|
||||||
|
let path =
|
||||||
|
if gProjectName.isAbsolute: gProjectName
|
||||||
|
else: gProjectPath / gProjectName
|
||||||
try:
|
try:
|
||||||
gProjectFull = canonicalizePath(gProjectPath / gProjectName)
|
gProjectFull = canonicalizePath(path)
|
||||||
except OSError:
|
except OSError:
|
||||||
gProjectFull = gProjectName
|
gProjectFull = path
|
||||||
cbconf getCommand:
|
cbconf getCommand:
|
||||||
setResult(a, options.command)
|
setResult(a, options.command)
|
||||||
cbconf switch:
|
cbconf switch:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue