Commit 6bb3802b authored by scherkus@chromium.org's avatar scherkus@chromium.org

Fix checkbins.py to find pefile import instead of .bat/.sh wrappers.

BUG=25952
TEST=still executes regardless of where you run the script from

Review URL: http://codereview.chromium.org/347008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30396 0039d316-1c4b-4281-b951-d872f2087c98
parent f3ab3a45
@echo off @%~dp0..\..\third_party\python_24\python.exe %~dp0checkbins.py %*
setlocal
set PYTHONPATH=%~dp0..\..\third_party\pefile;%PYTHONPATH%
%~dp0..\..\third_party\python_24\python.exe %~dp0checkbins.py %*
...@@ -14,6 +14,9 @@ import os ...@@ -14,6 +14,9 @@ import os
import optparse import optparse
import sys import sys
# Find /third_party/pefile based on current directory and script path.
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..',
'third_party', 'pefile'))
import pefile import pefile
PE_FILE_EXTENSIONS = ['.exe', '.dll'] PE_FILE_EXTENSIONS = ['.exe', '.dll']
......
#!/bin/sh
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Include pefile in the path.
PYTHONPATH="$(dirname $0)/../../third_party/pefile:$PYTHONPATH"
export PYTHONPATH
python "$(dirname $0)/checkbins.py" "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment