Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: build/android/gyp/java_cpp_enum.py

Issue 1571243003: Remove assumption on absolute paths in java_cpp_enum.py. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/java_cpp_enum.py
diff --git a/build/android/gyp/java_cpp_enum.py b/build/android/gyp/java_cpp_enum.py
index 9299bce0eb4e3af55f94b43da3bac77d961b5722..b304930d9d763089862948d8085b7304e24ff0a0 100755
--- a/build/android/gyp/java_cpp_enum.py
+++ b/build/android/gyp/java_cpp_enum.py
@@ -229,10 +229,7 @@ class HeaderParser(object):
self._in_enum = True
def GetScriptName():
- script_components = os.path.abspath(sys.argv[0]).split(os.path.sep)
- build_index = script_components.index('build')
- return os.sep.join(script_components[build_index:])
-
+ return os.path.basename(os.path.abspath(sys.argv[0]))
kjellander_chromium 2016/01/11 09:19:55 This returns the same result as before for Chromiu
def DoGenerate(source_paths):
for source_path in source_paths:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698