SPECIAL_CASES were not being considered properly on windows. The keys had hard-coded path with posix convention. I think the script has many such bugs. I have only fixed SPECIAL_CASES.
Review URL: http://codereview.chromium.org/1705019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46219 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tools/licenses.py b/tools/licenses.py
index 2faf617c..c11bd529 100755
--- a/tools/licenses.py
+++ b/tools/licenses.py
@@ -57,19 +57,19 @@
# can't provide a README.chromium. Please prefer a README.chromium
# wherever possible.
SPECIAL_CASES = {
- 'third_party/angle': {
+ os.path.join('third_party', 'angle'): {
"Name": "Almost Native Graphics Layer Engine",
"URL": "http://code.google.com/p/angleproject/",
},
- 'third_party/ots': {
+ os.path.join('third_party', 'ots'): {
"Name": "OTS (OpenType Sanitizer)",
"URL": "http://code.google.com/p/ots/",
},
- 'third_party/pywebsocket': {
+ os.path.join('third_party', 'pywebsocket'): {
"Name": "pywebsocket",
"URL": "http://code.google.com/p/pywebsocket/",
},
- 'third_party/WebKit': {
+ os.path.join('third_party', 'WebKit'): {
"Name": "WebKit",
"URL": "http://webkit.org/",
# Absolute path here is resolved as relative to the source root.