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

Unified Diff: chrome/browser/resources/safe_browsing/gen_file_type_proto.py

Issue 1887423003: Put the path to protobuf in front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: chrome/browser/resources/safe_browsing/gen_file_type_proto.py
diff --git a/chrome/browser/resources/safe_browsing/gen_file_type_proto.py b/chrome/browser/resources/safe_browsing/gen_file_type_proto.py
index 6700142c0c7b5371fbc9fc7d015187c417b7207e..3c4b5081053de011cba2a28d4998ee0e6418a98b 100755
--- a/chrome/browser/resources/safe_browsing/gen_file_type_proto.py
+++ b/chrome/browser/resources/safe_browsing/gen_file_type_proto.py
@@ -12,10 +12,11 @@ import sys
def ConvertProto(opts):
-
# Find the proto code
for path in opts.path:
- sys.path.append(path)
+ # Put the path to our proto libraries in front, so that we don't use system
+ # protobuf.
+ sys.path.insert(1, path)
import download_file_types_pb2 as config_pb2
import google.protobuf.text_format as text_format
« 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