commit | dd503484b83e23d5d61dc9ad7bb882f077154ca9 | [log] [tgz] |
---|---|---|
author | John Arbash Meinel <john@arbash-meinel.com> | Mon Jul 04 15:40:58 2011 +0200 |
committer | John Arbash Meinel <john@arbash-meinel.com> | Mon Jul 04 15:40:58 2011 +0200 |
tree | fb68a7c318e53fb6403626b49f04dfebace3c0bf | |
parent | cbdd565010543d2d895fbfe03026362c4f231d4f [diff] |
Fix 45 failing tests on Windows. On Windows, os.Getwd() returns '\' style paths, but the filenames returned from function.FileLine(pc) return '/' style paths. So the check to see if the long-path starts with Getwd fails. Add an init() function so that we can a) add the trailing '/', rather than doing it on every call to nicePath() b) Switches '\' delimiters to '/' so that they actually match.