Workaround pylint warning F0401.

gyp and gyp_helper path are obtained dynamically. Pylint generates
format checker warning. The Workaround is recommended by:
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html.
Although the style guide prefers using symbolic names, which is
supported since pylint 0.25.3, the depot_tools/pylint is 0.25.1.

Change-Id: I6c9bc21a46102f38cab68c07c98339003cbd6991
This commit is contained in:
Edwin Wong 2014-02-26 16:52:40 -08:00
parent 0a8dc6f606
commit c5ca55c388
1 changed files with 2 additions and 2 deletions

View File

@ -37,10 +37,10 @@ import sys
src_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(src_dir, 'build'))
import gyp_helper
import gyp_helper # Workaround the dynamic path. pylint: disable-msg=F0401
sys.path.insert(0, os.path.join(src_dir, 'tools', 'gyp', 'pylib'))
import gyp
import gyp # Workaround the dynamic path. pylint: disable-msg=F0401
if __name__ == '__main__':
args = sys.argv[1:]