Title: [138491] trunk/Tools
- Revision
- 138491
- Author
- [email protected]
- Date
- 2012-12-26 23:31:22 -0800 (Wed, 26 Dec 2012)
Log Message
Unreviewed. Replace find("Tools") with rfind("Tools") because base dir of WebKit may have Tools word.
As example ..../DevTools/src/third_party/WebKit
* Scripts/webkitpy/common/webkit_finder.py:
(WebKitFinder.webkit_base):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (138490 => 138491)
--- trunk/Tools/ChangeLog 2012-12-27 06:43:47 UTC (rev 138490)
+++ trunk/Tools/ChangeLog 2012-12-27 07:31:22 UTC (rev 138491)
@@ -1,3 +1,11 @@
+2012-12-26 Ilya Tikhonovsky <[email protected]>
+
+ Unreviewed. Replace find("Tools") with rfind("Tools") because base dir of WebKit may have Tools word.
+ As example ..../DevTools/src/third_party/WebKit
+
+ * Scripts/webkitpy/common/webkit_finder.py:
+ (WebKitFinder.webkit_base):
+
2012-12-25 Christophe Dumez <[email protected]>
[EFL][WK2] Refactor snapshot taking code
Modified: trunk/Tools/Scripts/webkitpy/common/webkit_finder.py (138490 => 138491)
--- trunk/Tools/Scripts/webkitpy/common/webkit_finder.py 2012-12-27 06:43:47 UTC (rev 138490)
+++ trunk/Tools/Scripts/webkitpy/common/webkit_finder.py 2012-12-27 07:31:22 UTC (rev 138491)
@@ -44,7 +44,7 @@
if not self._webkit_base:
self._webkit_base = self._webkit_base
module_path = self._filesystem.path_to_module(self.__module__)
- tools_index = module_path.find('Tools')
+ tools_index = module_path.rfind('Tools')
assert tools_index != -1, "could not find location of this checkout from %s" % module_path
self._webkit_base = self._filesystem.normpath(module_path[0:tools_index - 1])
return self._webkit_base
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes