make tests green again

This commit is contained in:
Andreas Rumpf 2016-11-24 09:14:36 +01:00
commit 7be1c55cf1
2 changed files with 3 additions and 3 deletions

View file

@ -232,10 +232,10 @@ proc canonicalizePath*(path: string): string =
proc shortenDir*(dir: string): string =
## returns the interesting part of a dir
var prefix = getPrefixDir() & DirSep
var prefix = gProjectPath & DirSep
if startsWith(dir, prefix):
return substr(dir, len(prefix))
prefix = gProjectPath & DirSep
prefix = getPrefixDir() & DirSep
if startsWith(dir, prefix):
return substr(dir, len(prefix))
result = dir