diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-07-02 07:19:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 16:19:13 +0200 |
commit | dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99 (patch) | |
tree | 5565f50d66e33272624093268d0c8641c770f59e /tools/vccexe | |
parent | 366b9a7e4a067cece3b1215de7fb4dffc703e88a (diff) | |
download | Nim-dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99.tar.gz |
{.deprecated: [existsFile: fileExists].} (#14735)
* {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
Diffstat (limited to 'tools/vccexe')
-rw-r--r-- | tools/vccexe/vccvswhere.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vccexe/vccvswhere.nim b/tools/vccexe/vccvswhere.nim index 11ad39ce9..8f62f06ca 100644 --- a/tools/vccexe/vccvswhere.nim +++ b/tools/vccexe/vccvswhere.nim @@ -18,7 +18,7 @@ proc vccVswhereExtractVcVarsAllPath(vswherePath: string): string = let vsPath = execProcess(&"\"{vswherePath}\" {vswhereArgs}").strip() if vsPath.len > 0: let vcvarsallPath = joinPath(vsPath, vcvarsRelativePath) - if existsFile(vcvarsallPath): + if fileExists(vcvarsallPath): return vcvarsallPath proc vccVswhereGeneratePath(envName: string): string = @@ -41,7 +41,7 @@ proc vccVswhereVcVarsAllPath*(): string = for tryEnv in ["ProgramFiles(x86)", "ProgramFiles"]: let vswherePath = vccVswhereGeneratePath(tryEnv) - if vswherePath.len > 0 and existsFile(vswherePath): + if vswherePath.len > 0 and fileExists(vswherePath): let vcVarsAllPath = vccVswhereExtractVcVarsAllPath(vswherePath) if vcVarsAllPath.len > 0: return vcVarsAllPath |