fixes 'nim c file_without_nim_ext' regression; refs #5183
This commit is contained in:
parent
64912d3d70
commit
92b48dbcad
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ proc handleCmdLine(cache: IdentCache) =
|
||||||
except OSError:
|
except OSError:
|
||||||
gProjectFull = gProjectName
|
gProjectFull = gProjectName
|
||||||
let p = splitFile(gProjectFull)
|
let p = splitFile(gProjectFull)
|
||||||
gProjectPath = canonicalizePath p.dir
|
let dir = if p.dir.len > 0: p.dir else: getCurrentDir()
|
||||||
|
gProjectPath = canonicalizePath dir
|
||||||
gProjectName = p.name
|
gProjectName = p.name
|
||||||
else:
|
else:
|
||||||
gProjectPath = canonicalizePath getCurrentDir()
|
gProjectPath = canonicalizePath getCurrentDir()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue