fixes criticial finish.nim bug
This commit is contained in:
parent
ee8c1c6f93
commit
33ebf3e5fb
1 changed files with 4 additions and 2 deletions
|
|
@ -114,8 +114,10 @@ proc main() =
|
||||||
var mingWchoices: seq[string] = @[]
|
var mingWchoices: seq[string] = @[]
|
||||||
var incompat: seq[string] = @[]
|
var incompat: seq[string] = @[]
|
||||||
for x in p.split(';'):
|
for x in p.split(';'):
|
||||||
let y = expandFilename(if x[0] == '"' and x[^1] == '"':
|
if x.len == 0: continue
|
||||||
|
let y = try: expandFilename(if x[0] == '"' and x[^1] == '"':
|
||||||
substr(x, 1, x.len-2) else: x)
|
substr(x, 1, x.len-2) else: x)
|
||||||
|
except: ""
|
||||||
if y == desiredPath: alreadyInPath = true
|
if y == desiredPath: alreadyInPath = true
|
||||||
if y.toLowerAscii.contains("mingw"):
|
if y.toLowerAscii.contains("mingw"):
|
||||||
if dirExists(y):
|
if dirExists(y):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue