Clean up a bit.
This commit is contained in:
parent
1b6abccba2
commit
6a09fc358e
1 changed files with 5 additions and 5 deletions
|
|
@ -290,12 +290,12 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
|
||||||
options.gNoBabelPath = true
|
options.gNoBabelPath = true
|
||||||
of "excludepath":
|
of "excludepath":
|
||||||
expectArg(switch, arg, pass, info)
|
expectArg(switch, arg, pass, info)
|
||||||
let
|
let path = processPath(arg)
|
||||||
path = processPath(arg)
|
|
||||||
strippedPath = removeTrailingDirSep(path)
|
|
||||||
echo repr(options.searchPaths)
|
echo repr(options.searchPaths)
|
||||||
lists.excludePath(options.searchPaths, path)
|
lists.excludePath(options.searchPaths, path)
|
||||||
lists.excludePath(options.lazyPaths, path)
|
lists.excludePath(options.lazyPaths, path)
|
||||||
|
if (len(path) > 0) and (path[len(path) - 1] == DirSep)::
|
||||||
|
let strippedPath = removeTrailingDirSep(path)
|
||||||
lists.excludePath(options.searchPaths, strippedPath)
|
lists.excludePath(options.searchPaths, strippedPath)
|
||||||
lists.excludePath(options.lazyPaths, strippedPath)
|
lists.excludePath(options.lazyPaths, strippedPath)
|
||||||
echo repr(options.searchPaths)
|
echo repr(options.searchPaths)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue