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

Unified Diff: tools/checkbins/checkbins.py

Issue 347008: Fix checkbins.py to find pefile import instead of .bat/.sh wrappers. (Closed)
Patch Set: Created 11 years, 2 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 | « tools/checkbins/checkbins.bat ('k') | tools/checkbins/checkbins.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/checkbins/checkbins.py
diff --git a/tools/checkbins/checkbins.py b/tools/checkbins/checkbins.py
index 318720e32cec380bb13f53f757730a32cf613536..0304c172566d4110741a9bb82b0cd17ebc03da9d 100755
--- a/tools/checkbins/checkbins.py
+++ b/tools/checkbins/checkbins.py
@@ -14,6 +14,9 @@ import os
import optparse
import sys
+# Find /third_party/pefile based on current directory and script path.
+sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '..', '..',
M-A Ruel 2009/10/28 19:55:43 Use __file__ instead of sys.argv[0]
+ 'third_party', 'pefile'))
import pefile
PE_FILE_EXTENSIONS = ['.exe', '.dll']
« no previous file with comments | « tools/checkbins/checkbins.bat ('k') | tools/checkbins/checkbins.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698